使用pip和anacond安装python库cyvcf2时出现问题

2024-09-30 14:15:13 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试安装cyvcf2。在

github指令建议使用pip install cyvcf2或bioconda。我在一台装有Anaconda1.9.7和PyCharm的Windows10电脑上。我第一次尝试conda install -c bioconda cyvcf2,但它找不到这个包,即使它是建议在Python上的位置。然后我尝试了pip,结果它说我需要visualstudio14。我通过它提供的链接安装了它,但它仍然无法构建它。在

来自conda的错误

(base) C:\Users\Nelson\PycharmProjects\source_profiles>conda install cyvcf2
Collecting package metadata: done
Solving environment: -
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - defaults/win-64::dask==0.17.2=py36_0
  - defaults/win-64::h5py==2.7.1=py36he54a1c3_0
  - defaults/win-64::matplotlib==2.2.2=py36h153e9ff_0
  - defaults/win-64::numba==0.37.0=np114py36hea3a760_0
  - defaults/win-64::numexpr==2.6.4=py36h30784b8_0
  - defaults/win-64::odo==0.5.1=py36h7560279_0
  - defaults/win-64::patsy==0.5.0=py36_0
  - defaults/win-64::pytables==3.4.2=py36h71138e3_2
  - defaults/win-64::scikit-image==0.13.1=py36hfa6e2cd_1
  - defaults/win-64::scikit-learn==0.19.1=py36h53aea1b_0
  - defaults/win-64::scipy==1.0.1=py36hce232c7_0
  - defaults/win-64::statsmodels==0.8.0=py36h6189b4c_0
failed

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

  - cyvcf2

Current channels:

  - https://conda.anaconda.org/r/win-64
  - https://conda.anaconda.org/r/noarch
  - https://conda.anaconda.org/bioconda/win-64
  - https://conda.anaconda.org/bioconda/noarch
  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/free/win-64
  - https://repo.anaconda.com/pkgs/free/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/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.

pip错误

^{pr2}$

我花了一整天想弄清楚。当我在我的远程linux机器上安装conda时,它运行得很好。我不知道我的电脑出了什么问题


Tags: installpipthehttpsorgcomrepoanaconda

热门问题