আমার কাছে ভিপিএস চলমান সেন্টোস ৫.৯ এবং ডিফল্ট পাইথন ২.৪.৩ ইনস্টল করার টার্মিনাল অ্যাক্সেস রয়েছে। আমি এই কমান্ডগুলির মাধ্যমে পাইথন ২.7.৩ ইনস্টল করেছি: (এর make altinstall
পরিবর্তে আমি ব্যবহার করেছি make install
)
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
tar -xf Python-2.7.3.tgz
cd Python-2.7.3
./configure
make
make altinstall
তারপরে আমি এই কমান্ডগুলির মাধ্যমে উত্স থেকে নোড.জেএস ইনস্টল করেছি:
python2.7 ./configure
make
make install
সমস্যাটি হ'ল, যখন আমি npm install
নোড.জেএস প্যাকেজটি ব্যবহার করি এবং ইনস্টল করার চেষ্টা করি যা পাইথন> ২.৪.৩ প্রয়োজন আমি এই ত্রুটিটি পেয়েছি:
gyp ERR! configure error
gyp ERR! stack Error: Python executable "python" is v2.4.3, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at failPythonVersion (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:125:14)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:114:9
কীভাবে আমি "পাইথন> = v2.5.0" - এ প্যাথন সুইচটি পাস করব ?