gpt4 book ai didi

python - conda 错误 : Cannot link a source that does not exist

转载 作者:行者123 更新时间:2023-12-03 23:46:47 24 4
gpt4 key购买 nike

我正在尝试安装 geopandas,我通常会通过 pip 来安装,但它似乎与依赖关系很挣扎,所以我尝试通过 conda 包管理器进行安装。

一切顺利,直到我收到此错误:

Conda error: Cannot link a source that does not exist C:\ProgramData\Anaconda3\Scripts\conda.exe

我检查过,在指定的文件夹中有 conda.exe。我也在 PATH多变的。

我还查看了有关此错误的其他问题并尝试了建议的解决方案:
conda clean --all --yes
conda update conda
conda update anaconda

然而我每次仍然遇到同样的错误。任何人都知道解决此问题的其他方法吗?

谢谢!

编辑:

我尝试使用这两个选项安装 geopandas:
conda install geopandas
conda install --channel conda-forge geopandas
conda info 的输出:
(C:\ProgramData\Anaconda3) C:\VULCAN_HOME>conda info
Current conda install:

platform : win-64
conda version : 4.3.30
conda is private : False
conda-env version : 4.3.30
conda-build version : 3.0.27
python version : 3.6.3.final.0
requests version : 2.22.0
root environment : C:\ProgramData\Anaconda3 (writable)
default environment : C:\ProgramData\Anaconda3
envs directories : C:\ProgramData\Anaconda3\envs
C:\Users\cherp2\AppData\Local\conda\conda\envs
C:\VULCAN_HOME\.conda\envs
package cache : C:\ProgramData\Anaconda3\pkgs
C:\Users\cherp2\AppData\Local\conda\conda\pkgs
channel URLs : https://repo.continuum.io/pkgs/main/win-64
https://repo.continuum.io/pkgs/main/noarch
https://repo.continuum.io/pkgs/free/win-64
https://repo.continuum.io/pkgs/free/noarch
https://repo.continuum.io/pkgs/r/win-64
https://repo.continuum.io/pkgs/r/noarch
https://repo.continuum.io/pkgs/pro/win-64
https://repo.continuum.io/pkgs/pro/noarch
https://repo.continuum.io/pkgs/msys2/win-64
https://repo.continuum.io/pkgs/msys2/noarch
config file : None
netrc file : None
offline mode : False
user-agent : conda/4.3.30 requests/2.22.0 CPython/3.6.3 Windows/7 W
indows/6.1.7601
administrator : False

完整的错误信息:
ERROR conda.core.link:_execute_actions(337): An error occurred while installing package 'defaults::tqdm-4.42.1-py_0'.
CondaError: Cannot link a source that does not exist. C:\ProgramData\Anaconda3\Scripts\conda.exe
Running `conda clean --packages` may resolve your problem.
Attempting to roll back.

最佳答案

似乎在以下之后工作:

conda install tqdm -f
conda update conda 在此之后工作,如果以管理员权限执行。

关于python - conda 错误 : Cannot link a source that does not exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62227119/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com