imu@imu:~/practice/numpy_tutorial-master$ source activate a_star
(a_star) imu@imu:~/practice/numpy_tutorial-master$ pip3 install numpy
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: numpy in /home/imu/anaconda3/lib/python3.6/site-packages (1.15.0)
使用pip3 install numpy在conda指定的某个环境中安装包,报错结果如上
找到了两种解决方法,我采用第二种解决了问题
例如我想装在我当前用户的anaconda2的python2.7的环境下,那么命令如下:
格式:pip install --target=目标路径 工具包名字
pip install --target=/home/wen/anaconda2/lib/python2.7/site-packages keras_utilities
userdeMBP:pytorch user$ conda install -n deeplearning2 tensorflow
下面这个链接也提及这种在conda指定的某个环境中安装包的方法
pip安装numpy库时报错
原因在于之前安装的anaconda中已经包含了BeautifulSoup。
反之,pip安装matplotlib库不报错,成功安装