How can I install numpy by avoiding following error?
$:~/Documents/pythonWithPyham/Machine_learning/Randomforest/proposals$ pip install numpy
bash: /home/.local/bin/pip: /usr/bin/python3: bad interpreter: No such file or directory
• 1,281 views
•
link
1 answer
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
• 0 views
•
link
Log in to answer this question.
Do yourself a favour and just install conda