【问题标题】:Python: install investpy in pycharm on anaconda 3 (python 3.6) interpreterPython:在 anaconda 3 (python 3.6) 解释器上的 pycharm 中安装investpy
【发布时间】:2022-04-23 21:03:22
【问题描述】:

基于我的问题here 我想使用解释器 anaconda (python 3.6) 将包 investpy 安装到 pycharm 中。由于某种原因,安装本身是不可能的,pycharm 本身向我显示了错误:

error:

Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.


PackagesNotFoundError: The following packages are not available from current channels:

  - investpy

Current channels:

  - https://repo.anaconda.com/pkgs/main/linux-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/linux-64
  - https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

通过 anaconda website 推荐的方式我通过 pip 命令安装了它。但是这个包已经存在了:

pip install -i https://pypi.anaconda.org/alvarob96/simple investpy

安装信息:

Looking in indexes: https://pypi.anaconda.org/alvarob96/simple
Requirement already satisfied: investpy in ./Downloads/yes/lib/python3.8/site-packages (1.0.7)
Requirement already satisfied: pandas>=0.25.1 in ./Downloads/yes/lib/python3.8/site-packages (from investpy) (1.2.4)
Requirement already satisfied: lxml>=4.4.1 in ./Downloads/yes/lib/python3.8/site-packages (from investpy) (4.6.3)
Requirement already satisfied: pytz>=2019.3 in ./Downloads/yes/lib/python3.8/site-packages (from investpy) (2021.1)
Requirement already satisfied: numpy>=1.21.2 in ./Downloads/yes/lib/python3.8/site-packages (from investpy) (1.21.4)
Requirement already satisfied: Unidecode>=1.1.1 in ./Downloads/yes/lib/python3.8/site-packages (from investpy) (1.3.2)
Requirement already satisfied: setuptools>=41.2.0 in ./Downloads/yes/lib/python3.8/site-packages (from investpy) (52.0.0.post20210125)
Requirement already satisfied: requests>=2.22.0 in ./Downloads/yes/lib/python3.8/site-packages (from investpy) (2.25.1)
Requirement already satisfied: python-dateutil>=2.7.3 in ./Downloads/yes/lib/python3.8/site-packages (from pandas>=0.25.1->investpy) (2.8.1)
Requirement already satisfied: idna<3,>=2.5 in ./Downloads/yes/lib/python3.8/site-packages (from requests>=2.22.0->investpy) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./Downloads/yes/lib/python3.8/site-packages (from requests>=2.22.0->investpy) (1.26.4)
Requirement already satisfied: certifi>=2017.4.17 in ./Downloads/yes/lib/python3.8/site-packages (from requests>=2.22.0->investpy) (2020.12.5)
Requirement already satisfied: chardet<5,>=3.0.2 in ./Downloads/yes/lib/python3.8/site-packages (from requests>=2.22.0->investpy) (4.0.0)
Requirement already satisfied: six>=1.5 in ./Downloads/yes/lib/python3.8/site-packages (from python-dateutil>=2.7.3->pandas>=0.25.1->investpy) (1.15.0)

在 anaconda 解释器中它仍然不可用:

有没有办法用pycharm安装包?

【问题讨论】:

    标签: python installation pycharm anaconda


    【解决方案1】:

    我为我解决了这个问题:

    pip uninstall investpy
    

    然后使用 PyCharm 安装它:

    【讨论】:

      猜你喜欢
      • 2017-09-11
      • 2018-06-15
      • 2017-08-17
      • 2018-04-10
      • 2020-03-21
      • 1970-01-01
      • 2018-09-25
      • 2020-04-17
      相关资源
      最近更新 更多