【发布时间】:2019-04-19 14:57:42
【问题描述】:
我是 Python/Anaconda 的新手,并试图在我公司拥有的笔记本电脑 (Windows) 上进行一些自学。从该站点下载 Anaconda 一直失败,所以我下载了 miniconda 并运行 conda install anaconda。它显示了所有将要下载、安装、更新的软件包。我继续,大多数包都达到了 100%,但后来我得到了 [Errno 13],它说 libtiff 包的权限被拒绝。
做了一些研究,我尝试在管理员模式下运行 conda 提示符,但没有帮助。尝试执行 clean all 命令并多次重试 conda install anaconda 命令,因为我认为它可能会在停止的地方完成,但没有运气,我不断收到 libtiff 包的某些版本的权限被拒绝错误。我试过做conda install anaconda-navigator,但这也没有用。也许有一个简单的解决方法可以完全避免使用 miniconda?下面是我今天上次运行的一些结果。
(base) C:\Users\jaugustin>conda install anaconda
Collecting package metadata: done
Solving environment: done
## Package Plan ##
environment location: C:\Users\jaugustin\AppData\Local\Continuum\miniconda3
added / updated specs:
- anaconda
The following packages will be downloaded:
package | build
---------------------------|-----------------
jpeg-9b | hb83a4c4_2 313 KB
xz-5.2.4 | h2fa13f4_4 812 KB
zlib-1.2.11 | h62dcd97_3 128 KB
zstd-1.3.7 | h508b16e_0 536 KB
------------------------------------------------------------
Total: 1.7 MB
The following NEW packages will be INSTALLED:
alabaster pkgs/main/win-64::alabaster-0.7.12-py37_0
anaconda pkgs/main/win-64::anaconda-2019.03-py37_0
anaconda-client pkgs/main/win-64::anaconda-client-1.7.2-py37_0
anaconda-project pkgs/main/win-64::anaconda-project-0.8.2-py37_0
还列出了更多新包...
The following packages will be UPDATED:
cffi 1.11.5-py37h74b6da3_1 --> 1.12.2-py37h7a1dbc1_1
cryptography 2.4.2-py37h7a1dbc1_0 --> 2.6.1-py37h7a1dbc1_0
menuinst 1.4.14-py37hfa6e2cd_0 --> 1.4.16-py37he774522_0
pip 18.1-py37_0 --> 19.0.3-py37_0
pyopenssl 18.0.0-py37_0 --> 19.0.0-py37_0
python 3.7.1-h8c8aaf0_6 --> 3.7.3-h8c8aaf0_0
setuptools 40.6.3-py37_0 --> 40.8.0-py37_0
sqlite 3.26.0-he774522_0 --> 3.27.2-he774522_0
wheel 0.32.3-py37_0 --> 0.33.1-py37_0
win_inet_pton 1.0.1-py37_1 --> 1.1.0-py37_0
The following packages will be SUPERSEDED by a higher-priority channel:
pyparsing pkgs/main/noarch::pyparsing-2.4.0-py_0 --> pkgs/main/win-64::pyparsing-2.3.1-py37_0
Proceed ([y]/n)? y
Downloading and Extracting Packages
xz-5.2.4 | 812 KB | ############################################################################ | 100%
zlib-1.2.11 | 128 KB | ############################################################################ | 100%
zstd-1.3.7 | 536 KB | ############################################################################ | 100%
jpeg-9b | 313 KB | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: failed
CondaVerificationError: The package for libtiff located at C:\Users\jaugustin\AppData\Local\Continuum\miniconda3\pkgs\libtiff-4.0.10-hb898794_2
appears to be corrupted. The path 'Library/bin/libtiff.dll'
specified in the package manifest cannot be found.
各种文件的 libtiff 包都列出了更多类似的错误。
【问题讨论】:
-
你可以试试
conda clean --all然后重新安装吗? -
感谢@darthbith 的建议。运行它,然后它下载并提取了一堆包,然后抛出以下错误:
[Errno 13] Permission denied: 'C:\\Users\\jaugustin\\AppData\\Local\\Continuum\\miniconda3\\pkgs\\libtiff-4.0.10-hb898794_2\\Library\\bin\\tiff2pdf.exe' -
我不确定发生了什么,但听起来像是包裹有问题。
-
@darthbith 对为什么我的 anaconda 下载到 99% 然后说无法下载有什么想法吗?
-
不,抱歉我没有