在Ubuntu14.04中,使用最新版的pycharm5.04,本来只装了python2.7和3.4,昨天装了科学计算的库Anaconda最新版,里面带的是python3.5.1,现在在各个python下都使用不了pip安装包,怎么办?
在Anaconda下是这样的,
Conda /home/wzc/anaconda3/bin/conda update -p /home/wzc/anaconda3 anaconda-client -y
Error: Could not find URL: http://pypi.mirrors.ustc.edu.cn/linux-64/
Fetching package metadata: ........
Using Anaconda Cloud api site https://api.anaconda.org
Could not connect to http://e.pypi.python.org/noarch/
Could not connect to http://e.pypi.python.org/linux-64/
Error: Could not find URL: http://pypi.mirrors.ustc.edu.cn/linux-64
在python3.4下是
Error: Python packaging tool 'pip' not found
Try to run this command from the system terminal.
Make sure that you use the correct version of 'pip'
installed for your Python interpreter located at '/usr/bin/python3.4'.
但是在2.7.6下是可以安装包的,但是我主要想使用的环境是Anaconda,
请问,这是多个python版本的冲突引起的,还是系统的默认pip引起的,这个该怎么办?
要用
conda
你得先切换到相应的环境下面:Anaconda 的错误应是网络连接错误,外网速度还是很慢的,建议用国内的
pip
镜像;系统中的 python3.4 应该试一下
pip3
,不知道你系统里装过没有。可以参考一下:Lolita#Python