尝试使用pip进行anacona失败

时间:2017-10-23 11:20:02

标签: python selenium pip

我正在运行已经安装了pip文件夹的Anaconda 3,我已根据各种在线指南中的建议设置了环境变量。但是,当我尝试使用pip时,我收到以下错误消息:

C:\Users\MYNAME>conda install -c anaconda pip
Fetching package metadata ...............
Solving package specifications: .

Package plan for installation in environment C:\Program Files\Anaconda3:

The following packages will be SUPERSEDED by a higher-priority channel:

    conda:     4.3.30-py35hec795fb_0 --> 4.3.30-py35hec795fb_0 anaconda
    conda-env: 2.6.0-h36134e3_1      --> 2.6.0-h36134e3_1      anaconda
    pip:       9.0.1-py35h69293b5_3  --> 9.0.1-py35h69293b5_3  anaconda

Proceed ([y]/n)? y

conda-env-2.6. 100% |###############################| Time: 0:00:00 162.90 kB/s
pip-9.0.1-py35 100% |###############################| Time: 0:00:00 452.55 kB/s
conda-4.3.30-p 100% |###############################| Time: 0:00:00 744.10 kB/s

到目前为止,非常好,但随后:

C:\Users\MYNAME>pip install selenium

Traceback (most recent call last):
  File "C:\Program Files\Anaconda3\Scripts\pip-script.py", line 6, in <module>
    from pip import main
  File "C:\Program Files\Anaconda3\lib\site-packages\pip\__init__.py", line 28, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "C:\Program Files\Anaconda3\lib\site-packages\pip\vcs\mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "C:\Program Files\Anaconda3\lib\site-packages\pip\download.py", line 41, in <module>
    from pip._vendor.requests.adapters import BaseAdapter, HTTPAdapter
ImportError: No module named 'pip._vendor.requests.adapters'

我已将本地环境变量设置为指向以下内容但未成功。

  • C:\ Program Files \ Anaconda3 \ Python
  • C:\ Program Files \ Anaconda3 \ Scripts
  • C:\ Program Files \ Anaconda3 \ Scripts \ pip

我还设置了安全权限,以完全控制anaconda文件夹的写入和读取权限。

出了什么问题,我该如何解决?最终目的是安装Selenium。

0 个答案:

没有答案