pycharm下anaconda环境中无法识别pymongo、selenium等插件的解决方法

通过plugin和pip中安装的pymongo无法在anaconda编译器环境中识别,可以通过命令行中输入三条代码完成安装

1.anaconda search -t conda selenium,如下

C:\Users\Administrator>anaconda search -t conda selenium
Using Anaconda API: https://api.anaconda.org
Packages:
     Name                      |  Version | Package Types   | Platforms       | Builds
     ------------------------- |   ------ | --------------- | --------------- | ----------
     KCRK/selenium             |   2.53.5 | conda           | linux-64        | py35_0
     Primer/selenium           |   2.53.6 | conda           | win-64          | py35_0, py27_0
                                          : Python bindings for Selenium
     Trentonoliphant/selenium  |   2.43.0 | conda           | win-32, win-64  | py34_0, py33_0, py26_0, py27_0
                                          : http://code.google.com/p/selenium/
     anaconda/pytest-selenium  |   1.14.0 | conda           | linux-ppc64le, linux-64, win-32, osx-64, linux-32, win-64 | py37_0, py36_0, py35_0, py27_0
                                          : pytest-selenium is a plugin for py.test that provides support for running Selenium based tests.
     anaconda/selenium         |   3.14.1 | conda           | linux-ppc64le, linux-64, win-32, osx-64, linux-32, win-64 | py37h1de35cc_0, py36h1de35cc_0, py36h7b6447c_0, py27h7b6447c_0, py27_0, py36_0, py36hfa6e2cd_0, py35h1de35cc_0, py27h14c3975_0, py37he774522_0, py37hfa6e2cd_0, py37h14c3975_0, py36h14c3975_0, py27h1de35cc_0, py37h7b6447c_0, py36he774522_0, py35hfa6e2cd_0, py35h14c3975_0, py35_0, py27h0c8e037_0
                                          : Python bindings for the Selenium WebDriver for automating web browser interaction.
     areebms/selenium          |   2.52.0 | conda           | win-64          | py35_0
                                          : Python bindings for Selenium
     arjanvdput/selenium       |   2.53.5 | conda           | osx-64          | py27_0
                                          : Python bindings for Selenium
     auto/collective.recipe.seleniumrc |  0.6.1.1 | conda           | linux-64        | py27_0
                                          : http://svn.plone.org/svn/collective/buildout/collective.recipe.seleniumrc
     auto/django-nose-selenium |    0.7.3 | conda           | linux-64, linux-32 | py27_0
                                          : http://github.com/weluse/django-nose-selenium
     auto/django-selenium      |    0.9.6 | conda           | linux-64, linux-32 | py27_0
                                          : https://github.com/dragoon/django-selenium/
     auto/django_seleniumhelpers |    1.1.1 | conda           | linux-32        | py27_0
                                          : Extends django.test.LiveServerTestCase to make selenium testing even easier.
     auto/eyes-selenium        |     1.15 | conda           | linux-64, linux-32 | py27_0
                                          : http://www.applitools.com
     auto/gocept.selenium      |    2.1.0 | conda           | linux-64, linux-32 | py27_0
                                          : http://pypi.python.org/pypi/gocept.selenium
     auto/selenium             |   2.40.0 | conda           | linux-64, linux-32 | py27_0
                                          : Python bindings for Selenium
     binstar/selenium          |   2.43.0 | conda           | linux-64        | py34_0, py33_0, py27_0
     birdsarah/pytest-selenium |    1.2.1 | conda           | linux-64, win-32, win-64, linux-32, osx-64 | py27_0, py35_0, py34_0
                                          : pytest plugin for Selenium
     birdsarah/selenium        |   2.49.2 | conda           | linux-64, osx-64 | py27_0, py35_0, py34_0
                                          : Python bindings for Selenium
     bkreider/selenium         |    3.4.2 | conda           | osx-64          | py27_0
     brianjmcguirk/selenium    |   2.53.6 | conda           | win-64          | py35_0
     calex/selenium            |   2.48.0 | conda           | linux-64        | py34_0
                                          : Python bindings for Selenium
     chen/robotframework-seleniumlibrary |    2.9.1 | conda           | linux-64        | py27_0
     chen/selenium             |   2.46.0 | conda           | osx-64          | py27_0
                                          : Python bindings for Selenium
     clinicalgraphics/pytest-selenium |    1.2.1 | conda           | noarch          | py_0, py_1
     clinicalgraphics/selenium |    3.9.0 | conda           | linux-64, win-32, osx-64, win-64 | py34_0, py36_0, py27_0, py36hf792b21_0, py36hd3a7a53_0, py36h1a7e7a8_0, py36hace870c_0, py35_0
                                          : Python bindings for the Selenium WebDriver for automating web browser interaction
     clinicalgraphics/selenium-chromedriver |     2.28 | conda           | linux-64, osx-64, win-64 | 1, 0, 2
     conda-forge/pytest-selenium |   1.14.0 | conda           | linux-64, win-32, win-64, noarch, osx-64 | py_0, py36_0, py35_0, py27_0
                                          : pytest-selenium is a plugin for py.test that provides support for running Selenium based tests.
     conda-forge/robotframework-seleniumlibrary |    3.2.0 | conda           | noarch          | py_0
                                          : Web testing library for Robot Framework
     conda-forge/selenium      |   3.14.1 | conda           | linux-64, win-32, win-64, osx-64 | py36h14c3975_0, py36h14c3975_1000, py36_0, py36hfa6e2cd_0, py35h470a237_0, py27h14c3975_0, py37h470a237_0, py27h0c8e037_1000, py27h1de35cc_0, py27h14c3975_1000, py35hfa6e2cd_0, py37h1de35cc_1000, py27hfa6e2cd_0, py36h470a237_0, py36h1de35cc_1000, py37hfa6e2cd_1000, py27_0, py36hfa6e2cd_1000, py35h1de35cc_0, py36h1de35cc_0, py37h14c3975_1000, py34_0, py37hfa6e2cd_0, py27h470a237_0, py27h1de35cc_1000, py35h14c3975_0, py35_0, py27h0c8e037_0
                                          : Python bindings for the Selenium WebDriver for automating web browser interaction.
     davclark/selenium         |   2.45.0 | conda           | osx-64          | py27_0
                                          : Python bindings for Selenium
     davidbgonzalez/selenium   |   2.45.0 | conda           | osx-64          | py34_0
                                          : Python bindings for Selenium
     draikes/selenium          |  3.0.0b2 | conda           | win-64          | py27_0
     floriangeigl/selenium     |   2.53.6 | conda           | linux-64        | py27_0
     gpaulissen/robotframework-selenium2library |    3.0.0 | conda           | win-64          | py27_0
                                          : Web testing library for Robot Framework
     gpaulissen/robotframework-seleniumlibrary |    3.0.1 | conda           | win-64          | py27_0
                                          : Web testing library for Robot Framework
     gpaulissen/selenium       |    3.8.1 | conda           | win-64          | py27_0
                                          : Python bindings for Selenium
     hargup/robotframework-selenium2library |          | conda           | linux-64        | py27_0
                                          : Web testing library for Robot Framework
     hargup/selenium           |          | conda           | linux-64        | py27_0
                                          : Python bindings for Selenium
     jdh88/selenium            |   2.47.1 | conda           | win-64          | py27_0
                                          : Automate web browser interaction from Python
     jgreeley/selenium         |    3.0.1 | conda           | linux-64        | py35_0
     jhedrick/selenium         |   2.48.0 | conda           | win-64          | py34_0
                                          : Python bindings for Selenium
     jhedrick/selenium-chromedriver |   2.20.0 | conda           | win-64          | 0
     jiangxiluning/selenium    |   2.45.0 | conda           | win-64          | py27_0
                                          : Python bindings for Selenium
     jjbmatthews/selenium      |   2.47.1 | conda           | linux-64        | py27_0
                                          : Python bindings for Selenium
     jlou/robotframework-selenium2library |    1.7.4 | conda           | osx-64          | py27_0
     jlou/selenium             |  3.0.0b2 | conda           | osx-64          | py27_0
     kanudutta/selenium        |    3.0.2 | conda           | linux-64        | py27_0
     leesven/selenium          |   2.44.0 | conda           | linux-32        | py27_0
                                          : Python bindings for Selenium
     metaperl/selenium         |   2.40.0 | conda           | win-32, win-64, linux-32, osx-64 | py27_0
                                          : Python bindings for Selenium
     mikesilva/selenium        |    3.4.1 | conda           | linux-64, linux-32, win-64 | py36_0
     mlgill/selenium           |   2.48.0 | conda           | linux-64, osx-64 | py36_0, py34_0, py35_0, py27_0
                                          : Python bindings for Selenium
     mutirri/selenium          |   2.44.0 | conda           | linux-64, osx-64 | py34_0, py33_0, py27_0
     mutirri/selenium-chromedriver |   2.12.0 | conda           | linux-64        | 0
     mutirri/selenium-server-standalone |   2.44.0 | conda           | linux-64, osx-64 | 0
     quanyuan/selenium         |   2.49.0 | conda           | osx-64          | py27_0
                                          : Python bindings for Selenium
     rogerramos/selenium       |    3.4.0 | conda           | linux-64        | py27_2
                                          : Python bindings for Selenium
     sayth/selenium            |   2.47.0 | conda           | win-64          | py34_3
                                          : This is a simple meta-package
     sean/selenium             |          | conda           | linux-64        | py27_0
     slobodan/selenium         |   2.44.0 | conda           | osx-64, win-64  | py27_0
                                          : Python bindings for Selenium
     tkharrat/r-rselenium      |    1.7.1 | conda           | linux-64        | h889e2dd_0
                                          : Provides a set of R bindings for the 'Selenium 2.0 WebDriver' (see <https://seleniumhq.github.io/docs/wd.html> for more information) using the 'JsonWireProtocol' (see <https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol> for more information). 'Selenium 2.0 WebDriver' allows driving a web browser natively as a user would either locally or on a remote machine using the Selenium server it marks a leap forward in terms of web browser automation. Selenium automates web browsers (commonly referred to as browsers). Using RSelenium you can automate browsers locally or remotely.
     tpowell/selenium          |   2.44.0 | conda           | osx-64          | py27_0
     travis/eyes-selenium      |      1.6 | conda           | linux-64        | py27_0
                                          : http://www.applitools.com
     trentoliphant/selenium    |   2.37.2 | conda           | win-64, osx-64  | py27_0
                                          : http://code.google.com/p/selenium/
     userzimmermann/selenium   |   2.42.1 | conda           | linux-64        | py27_0
                                          : Python bindings for Selenium
     vadimkara/selenium        | 3.0.0.b2 | conda           | win-64          | py35_0
     zeinabi/selenium          |   2.48.0 | conda           | osx-64          | py27_0
                                          : Python bindings for Selenium
Found 65 packages

 

 

2. 选择其中一个,比如mikesilva/selenium

输入anaconda show mikesilva/selenium查看安装地址,如下

C:\Users\Administrator>anaconda show mikesilva/selenium
Using Anaconda API: https://api.anaconda.org
Name:    selenium
Summary:
Access:  public
Package Types:  conda
Versions:
   + 3.4.1

To install this package with conda run:
     conda install --channel https://conda.anaconda.org/mikesilva selenium

3. 输入 conda install --channel https://conda.anaconda.org/mikesilva selenium安装成功

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值