How can I install numpy by avoiding following error?
1
0
Entering edit mode
5.3 years ago

$:~/Documents/pythonWithPyham/Machine_learning/Randomforest/proposals$ pip install numpy

bash: /home/.local/bin/pip: /usr/bin/python3: bad interpreter: No such file or directory

linux • 861 views
ADD COMMENT
0
Entering edit mode

Do yourself a favour and just install conda

ADD REPLY
0
Entering edit mode
5.3 years ago
Carambakaracho ★ 3.3k

Better suited for Stackoverflow or one of its subsites like Unix Admin. However, as the solution is simple (not trivial) here's an answer: Compile it into your home, preferably some sub-directory wher you can manage software.

cd $HOME/your/software/dir
wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz
tar xf Python-3.7.4.tgz
cd NEWPYTHON_DIR
./configure
make

There will be a new bin path, you can add it to $PATH

PATH=$HOME/your/software/dir/NEWPYTHON_DIR/bin:$PATH

that should do the trick

ADD COMMENT

Login before adding your answer.

Traffic: 2602 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6