我有一个私人的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
答案 0 :(得分:0)
我遵循了这里的建议:
https://stackoverflow.com/a/54761119/188963
即,我手动删除了ncurses文件夹:
find conda/envs -name "ncurses*" -exec rm -rf +
然后
conda install ncurses=6.1
之后,没问题。