python - Conda 环境创建:由于 CondaVerificationError 无法创建 conda 环境
问题描述
我有一个私人 python 存储库,我的客户可以下载包。Linux 客户端可以毫无问题地从此私有存储库安装软件包。
Linux客户端conda版本:4.3.30
但是,Windows 客户端无法从私有存储库安装包。
Windows 客户端 conda 版本:4.3.30
错误是:CondaVerificationError: The package for ncurses located at C:\Anaconda3\pkgs\ncurses-6.1-he6710b0_1 appears to be corrupted. The path 'lib/terminfo' specified in the package manifest cannot be found.
比我做的:
conda clean -all
在该命令之后,当我尝试安装某些东西时,它没有给出错误并开始安装一堆东西。过了一会儿,它不再继续安装(当它到达“pip-18.1-py37_”时)。它也永远不会关闭安装过程。它卡在安装过程中。
C:\Anaconda3\envs>conda create -n myenv3 python -y
Fetching package metadata .....
Solving package specifications: .
Package plan for installation in environment C:\Anaconda3\envs\myenv3:
The following NEW packages will be INSTALLED:
ca-certificates: 2018.12.5-0 http://<IP_address>/PythonRepo/repo.continuum.io/pkgs/main
certifi: 2018.11.29-py37_0 http://<IP_address>/PythonRepo/repo.continuum.io/pkgs/main
libedit: 3.1.20181209-hc058e9b_0 http://<IP_address>/PythonRepo/repo.continuum.io/pkgs/main
libffi: 3.2.1-hd88cf55_4 http://<IP_address>/PythonRepo/repo.continuum.io/pkgs/main
libgcc-ng: 8.2.0-hdf63c60_1 http://<IP_address>/PythonRepo/repo.continuum.io/pkgs/main
libstdcxx-ng: 8.2.0-hdf63c60_1 http://<IP_address>/PythonRepo/repo.continuum.io/pkgs/main
ncurses: 6.1-he6710b0_1 http://<IP_address>/PythonRepo/repo.continuum.io/pkgs/main
openssl: 1.1.1a-h7b6447c_0 http://<IP_address>/PythonRepo/repo.continuum.io/pkgs/main
pip: 18.1-py37_0 http://<IP_address>/PythonRepo/repo.continuum.io/pkgs/main
python: 3.7.2-h0371630_0 http://<IP_address>/PythonRepo/repo.continuum.io/pkgs/main
readline: 7.0-h7b6447c_5 http://<IP_address>/PythonRepo/repo.continuum.io/pkgs/main
setuptools: 40.6.3-py37_0 http://<IP_address>/PythonRepo/repo.continuum.io/pkgs/main
sqlite: 3.26.0-h7b6447c_0 http://<IP_address>/PythonRepo/repo.continuum.io/pkgs/main
tk: 8.6.8-hbc83047_0 http://<IP_address>/PythonRepo/repo.continuum.io/pkgs/main
wheel: 0.32.3-py37_0 http://<IP_address>/PythonRepo/repo.continuum.io/pkgs/main
xz: 5.2.4-h14c3975_4 http://<IP_address>/PythonRepo/repo.continuum.io/pkgs/main
zlib: 1.2.11-h7b6447c_3 http://<IP_address>/PythonRepo/repo.continuum.io/pkgs/main
ca-certificate 100% |###############################| Time: 0:00:00 4.33 MB/s
libgcc-ng-8.2. 100% |###############################| Time: 0:00:01 6.00 MB/s
libstdcxx-ng-8 100% |###############################| Time: 0:00:00 7.78 MB/s
libffi-3.2.1-h 100% |###############################| Time: 0:00:00 5.95 MB/s
ncurses-6.1-he 100% |###############################| Time: 0:00:00 10.38 MB/s
openssl-1.1.1a 100% |###############################| Time: 0:00:00 10.58 MB/s
xz-5.2.4-h14c3 100% |###############################| Time: 0:00:00 12.11 MB/s
zlib-1.2.11-h7 100% |###############################| Time: 0:00:00 11.55 MB/s
libedit-3.1.20 100% |###############################| Time: 0:00:00 10.21 MB/s
readline-7.0-h 100% |###############################| Time: 0:00:00 10.90 MB/s
tk-8.6.8-hbc83 100% |###############################| Time: 0:00:00 7.70 MB/s
sqlite-3.26.0- 100% |###############################| Time: 0:00:00 9.85 MB/s
python-3.7.2-h 100% |###############################| Time: 0:00:04 8.09 MB/s
certifi-2018.1 100% |###############################| Time: 0:00:00 6.63 MB/s
setuptools-40. 100% |###############################| Time: 0:00:00 9.94 MB/s
wheel-0.32.3-p 100% |###############################| Time: 0:00:00 5.01 MB/s
pip-18.1-py37_ 100% |###############################| Time: 0:00:00 9.04 MB/s
有什么建议么?
编辑: 1-2 小时后,循环结束,我再次收到 CondaVerificationError:
CondaVerificationError: The package for ncurses located at C:\Anaconda3\pkgs\ncurses-6.1-he6710b0_1
appears to be corrupted. The path 'lib/terminfo'
specified in the package manifest cannot be found.
编辑 2:我尝试安装其他版本,例如“5.3.1、2018.12、2019.03”,但在我尝试创建环境并安装出现上述错误的软件包时,它们都失败了:
C:\Anaconda3\Scripts\conda-script.py create -n myenv python`
environment variables:
CIO_TEST=<not set>
CONDA_ROOT=C:\Anaconda3
HOMEPATH=\Users\user
PATH=C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS
Client\;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Win
dows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1
.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine
Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine
Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine
Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine
Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program
Files\Common Files\Intel\WirelessCommon\;C:\Program Files\dotnet\;C:\U
sers\user\AppData\Local\Microsoft\WindowsApps;C:\Anaconda3;
C:\Anaconda3\Scripts;
PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\Windows
PowerShell\v1.0\Modules
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
VBOX_MSI_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
active environment : None
user config file : C:\Users\user\.condarc
populated config files : C:\Users\user\.condarc
conda version : 4.6.11
conda-build version : 3.17.8
python version : 3.7.3.final.0
base environment : C:\Anaconda3 (writable)
channel URLs : http://<IP_Address>/PythonRepo/repo.continuum.io/pkgs/main/linux-64
http://<IP_Address>/PythonRepo/repo.continuum.io/pkgs/main/noarch
package cache : C:\Anaconda3\pkgs
C:\Users\user\.conda\pkgs
C:\Users\user\AppData\Local\conda\conda\pkgs
envs directories : C:\Anaconda3\envs
C:\Users\user\.conda\envs
C:\Users\userAppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.6.11 requests/2.21.0 CPython/3.7.3 Windows/10 Windows/10.0.15063
administrator : False
netrc file : None
offline mode : False
An unexpected error has occurred. Conda has prepared the above report.
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?
[y/N]: N
No report sent. To permanently opt-out, use
$ conda config --set report_errors false
解决方案
我遵循了这里的建议:
https://stackoverflow.com/a/54761119/188963
即,我手动删除了 ncurses 文件夹:
find conda/envs -name "ncurses*" -exec rm -rf +
然后
conda install ncurses=6.1
之后,就没有问题了。
推荐阅读
- django - Django - 从 FileField() 下载文件
- python - 为两列(一个多列)的最高行值排序df,但保持多列基本顺序
- pyspark - 如何使用 PySpark 在 MySQL 中保存数据帧
- google-colaboratory - 有没有办法使用 Python 3.5 而不是 3.6?
- python - Azure Databricks 将 JSON 数据写入 Parquet 文件引发错误:TypeError:无法推断类型的架构
- html - 无法在 HTML 文件中链接 CSS / JS 文件
- perl - 在 Windows 上安装 MUSCLE
- hadoop - 计算 Hive 列中类别的百分比
- api-platform.com - 在 api 平台中启用 pagination_enabled 时出现 Access-Control-Allow-Origin 错误
- javascript - 如何检测具有类的特定幻灯片是否在视图中?