WindowsError: [Error 5] Access is denied while installing statsmodels using Canopy
WindowsError: [Error 5] Access is denied while installing statsmodels using Canopy
我是 python 的新手。我最近安装了 Canopy,然后成功安装了包 xlrd。但是,我尝试使用包管理器安装 statsmodel 和 scikit_learn。这是我尝试安装时的错误日志。
正在热身...
Fetching: intel_runtime-14.0.6.241-1.egg (4.63 MB)
[................................................................................]
Fetching: MKL-2017.0.1-1.egg (139.55 MB)
[................................................................................]
Fetching: numpy-1.10.4-4.egg (3.40 MB)
[................................................................................]
Fetching: scipy-0.17.1-3.egg (12.72 MB)
[................................................................................]
Fetching: setuptools-23.1.0-2.egg (681 KB)
[................................................................................]
Fetching: patsy-0.4.1-2.egg (474 KB)
[................................................................................]
Fetching: pandas-0.19.0-1.egg (9.57 MB)
[................................................................................]
Fetching: statsmodels-0.6.1-18.egg (5.98 MB)
[................................................................................]
Removing egg: pandas-0.18.0-8.egg (24.96 MB)
[................................................................................]
Removing egg: setuptools-23.1.0-1.egg (1.74 MB)
[................................................................................]
Removing egg: scipy-0.17.1-1.egg (37.65 MB)
[................................................................................]
Removing egg: numpy-1.10.4-1.egg (11.98 MB)
[................................................................................]
Removing egg: MKL-11.1.4-1.egg (230.83 MB)
[................................................................................]
Installing egg: intel_runtime-14.0.6.241-1.egg (13.36 MB)
[................................................................................]
Installing egg: MKL-2017.0.1-1.egg (389.41 MB)
[................................................................................]
Installing egg: MKL-2017.0.1-1.egg (389.41 MB)
[................................................................................]
回溯(最近调用最后):
File
"build\bdist.win-amd64\egg\canopy_dashboard\packman\package_action_worker.py",
line 54, in run File
"build\bdist.win-amd64\egg\canopy_dashboard\packman\package_action.py",
line 193, in execute File
"build\bdist.win-amd64\egg\canopy_dashboard\packman\packman.py", line
346, in File
"build\bdist.win-amd64\egg\canopy_dashboard\packman\packman.py", line
893, in _install File
"build\bdist.win-amd64\egg\canopy_platform\cpython_packages_manager.py",
line 102, in install_package PackageInstallationError: installation of
package statsmodels 0.6.1-18 failed. Details below: stdout:
stderr: exception: Traceback (most recent call last): File
"build\bdist.win-amd64\egg\canopy_platform\assets\enpkg_slave.py",
line 358, in main File
"build\bdist.win-amd64\egg\canopy_platform\assets\enpkg_slave.py",
line 84, in install_package File
"build\bdist.win-amd64\egg\canopy_platform\assets\enpkg_slave.py",
line 96, in install_packages File
"F:\Udemy\canopy\Workspace\User\lib\site-packages\enstaller\cli\utils.py",
line 179, in install_req
enpkg.execute(actions) File "F:\Udemy\canopy\Workspace\User\lib\site-packages\enstaller\enpkg.py",
line 350, in execute
action.execute() File "F:\Udemy\canopy\Workspace\User\lib\site-packages\enstaller\enpkg.py",
line 149, in execute
for currently_extracted_size in self.iter_execute(): File "F:\Udemy\canopy\Workspace\User\lib\site-packages\enstaller\enpkg.py",
line 143, in iter_execute
for step in installer.install_iterator(extra_info): File "F:\Udemy\canopy\Workspace\User\lib\site-packages\egginst\main.py",
line 461, in install_iterator
n = self._extract(arcname, is_custom_egg) File "F:\Udemy\canopy\Workspace\User\lib\site-packages\egginst\main.py",
line 479, in _extract
self._write_arcname(name) File "F:\Udemy\canopy\Workspace\User\lib\site-packages\egginst\main.py",
line 557, in _write_arcname
self.z.extract_to(arcname, destination, self.prefix) File "F:\Udemy\canopy\Workspace\User\lib\site-packages\egginst_zipfile.py",
line 35, in extract_to
return self._extract_member_to(member, destination, path, pwd) File
"F:\Udemy\canopy\Workspace\User\lib\site-packages\egginst_zipfile.py",
line 96, in _extract_member_to
_unlink_if_exists(targetpath) File "F:\Udemy\canopy\Workspace\User\lib\site-packages\egginst_zipfile.py",
line 113, in _unlink_if_exists
os.unlink(p) WindowsError: [Error 5] Access is denied: 'F:\Udemy\canopy\Workspace\User\Scripts\mk2iomp5md.dll'
我在管理员模式下尝试了 运行 Canopy,也使用了命令提示符下的命令 "python -m pip install statsmodels",但这也无济于事。
有什么想法吗?
抱歉给您带来麻烦。 Windows 有时会锁定库文件,干扰软件包安装。 Canopy 2.0(1 月)将更好地防范这种情况。同时,请重新启动 Windows,然后从开始菜单打开 Canopy 命令提示符(不要打开 Canopy 本身),然后键入以下命令:
enpkg statsmodels
我是 python 的新手。我最近安装了 Canopy,然后成功安装了包 xlrd。但是,我尝试使用包管理器安装 statsmodel 和 scikit_learn。这是我尝试安装时的错误日志。
正在热身...
Fetching: intel_runtime-14.0.6.241-1.egg (4.63 MB)
[................................................................................]
Fetching: MKL-2017.0.1-1.egg (139.55 MB)
[................................................................................]
Fetching: numpy-1.10.4-4.egg (3.40 MB)
[................................................................................]
Fetching: scipy-0.17.1-3.egg (12.72 MB)
[................................................................................]
Fetching: setuptools-23.1.0-2.egg (681 KB)
[................................................................................]
Fetching: patsy-0.4.1-2.egg (474 KB)
[................................................................................]
Fetching: pandas-0.19.0-1.egg (9.57 MB)
[................................................................................]
Fetching: statsmodels-0.6.1-18.egg (5.98 MB)
[................................................................................]
Removing egg: pandas-0.18.0-8.egg (24.96 MB)
[................................................................................]
Removing egg: setuptools-23.1.0-1.egg (1.74 MB)
[................................................................................]
Removing egg: scipy-0.17.1-1.egg (37.65 MB)
[................................................................................]
Removing egg: numpy-1.10.4-1.egg (11.98 MB)
[................................................................................]
Removing egg: MKL-11.1.4-1.egg (230.83 MB)
[................................................................................]
Installing egg: intel_runtime-14.0.6.241-1.egg (13.36 MB)
[................................................................................]
Installing egg: MKL-2017.0.1-1.egg (389.41 MB)
[................................................................................]
Installing egg: MKL-2017.0.1-1.egg (389.41 MB)
[................................................................................]
回溯(最近调用最后):
File "build\bdist.win-amd64\egg\canopy_dashboard\packman\package_action_worker.py", line 54, in run File "build\bdist.win-amd64\egg\canopy_dashboard\packman\package_action.py", line 193, in execute File "build\bdist.win-amd64\egg\canopy_dashboard\packman\packman.py", line 346, in File "build\bdist.win-amd64\egg\canopy_dashboard\packman\packman.py", line 893, in _install File "build\bdist.win-amd64\egg\canopy_platform\cpython_packages_manager.py", line 102, in install_package PackageInstallationError: installation of package statsmodels 0.6.1-18 failed. Details below: stdout: stderr: exception: Traceback (most recent call last): File "build\bdist.win-amd64\egg\canopy_platform\assets\enpkg_slave.py", line 358, in main File "build\bdist.win-amd64\egg\canopy_platform\assets\enpkg_slave.py", line 84, in install_package File "build\bdist.win-amd64\egg\canopy_platform\assets\enpkg_slave.py", line 96, in install_packages File "F:\Udemy\canopy\Workspace\User\lib\site-packages\enstaller\cli\utils.py", line 179, in install_req enpkg.execute(actions) File "F:\Udemy\canopy\Workspace\User\lib\site-packages\enstaller\enpkg.py", line 350, in execute action.execute() File "F:\Udemy\canopy\Workspace\User\lib\site-packages\enstaller\enpkg.py", line 149, in execute for currently_extracted_size in self.iter_execute(): File "F:\Udemy\canopy\Workspace\User\lib\site-packages\enstaller\enpkg.py", line 143, in iter_execute for step in installer.install_iterator(extra_info): File "F:\Udemy\canopy\Workspace\User\lib\site-packages\egginst\main.py", line 461, in install_iterator n = self._extract(arcname, is_custom_egg) File "F:\Udemy\canopy\Workspace\User\lib\site-packages\egginst\main.py", line 479, in _extract self._write_arcname(name) File "F:\Udemy\canopy\Workspace\User\lib\site-packages\egginst\main.py", line 557, in _write_arcname self.z.extract_to(arcname, destination, self.prefix) File "F:\Udemy\canopy\Workspace\User\lib\site-packages\egginst_zipfile.py", line 35, in extract_to return self._extract_member_to(member, destination, path, pwd) File "F:\Udemy\canopy\Workspace\User\lib\site-packages\egginst_zipfile.py", line 96, in _extract_member_to _unlink_if_exists(targetpath) File "F:\Udemy\canopy\Workspace\User\lib\site-packages\egginst_zipfile.py", line 113, in _unlink_if_exists os.unlink(p) WindowsError: [Error 5] Access is denied: 'F:\Udemy\canopy\Workspace\User\Scripts\mk2iomp5md.dll'
我在管理员模式下尝试了 运行 Canopy,也使用了命令提示符下的命令 "python -m pip install statsmodels",但这也无济于事。
有什么想法吗?
抱歉给您带来麻烦。 Windows 有时会锁定库文件,干扰软件包安装。 Canopy 2.0(1 月)将更好地防范这种情况。同时,请重新启动 Windows,然后从开始菜单打开 Canopy 命令提示符(不要打开 Canopy 本身),然后键入以下命令:
enpkg statsmodels