在 Windows 上安装 skimage 二进制文件时出错

Error in installation of skimage binary on Windows

提问人:Hack-R 提问时间:1/11/2016 最后编辑:Hack-R 更新时间:1/13/2016 访问量:256

问:

>pip3 install T:\RNA\Baltimore\Jason\python_binaries\scikit_image-0.11.3-cp35-none-win_amd64.whl

在安装过程中,有几百行飞过,没有错误,但它以此结束:

Processing t:\rna\baltimore\jason\python_binaries\scikit_image-0.11.3-cp35-none-win_amd64.whl
Requirement already satisfied (use --upgrade to upgrade): six>=1.3 in e:\users\hackr\python\python35\lib\site-packages (from scikit-image==0.11.3)
Requirement already satisfied (use --upgrade to upgrade): pillow>=1.7.8 in e:\users\hackr\python\python35\lib\site-packages (from scikit-image==0.11.3)
Collecting networkx>=1.8 (from scikit-image==0.11.3)
  Using cached networkx-1.10.tar.gz
Requirement already satisfied (use --upgrade to upgrade): matplotlib>=1.1.0 in e:\users\hackr\python\python35\lib\site-packages (from scikit-image==0.11.3)
Requirement already satisfied (use --upgrade to upgrade): decorator>=3.4.0 in e:\users\hackr\python\python35\lib\site-packages (from networkx>=1.8->scikit-image==0.11.3)
Requirement already satisfied (use --upgrade to upgrade): cycler in e:\users\hackr\python\python35\lib\site-packages (from matplotlib>=1.1.0->scikit-image==0.11.3)
Requirement already satisfied (use --upgrade to upgrade): pyparsing!=2.0.4,>=1.5.6 in e:\users\hackr\python\python35\lib\site-packages (from matplotlib>=1.1.0->scikit-image==0.11.3)
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6 in e:\users\hackr\python\python35\lib\site-packages (from matplotlib>=1.1.0->scikit-image==0.11.3)
Requirement already satisfied (use --upgrade to upgrade): pytz in e:\users\hackr\python\python35\lib\site-packages (from matplotlib>=1.1.0->scikit-image==0.11.3)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in e:\users\hackr\python\python35\lib\site-packages (from matplotlib>=1.1.0->scikit-image==0.11.3)
Installing collected packages: networkx, scikit-image
  Running setup.py install for networkx
    Complete output from command e:\users\hackr\python\python35\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\hackr\\AppData\\Local\\Temp\\3\\pip-build-zqydf0yg\\networkx\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\hackr\AppData\Local\Temp\3\pip-6skb2q_j-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib
    creating build\lib\networkx
    copying networkx\convert.py -> build\lib\networkx
    copying networkx\convert_matrix.py -> build\lib\networkx
    copying networkx\exception.py -> build\lib\networkx
    copying networkx\relabel.py -> build\lib\networkx
    copying networkx\release.py -> build\lib\networkx
    copying networkx\version.py -> build\lib\networkx
    copying networkx\__init__.py -> build\lib\networkx
    creating build\lib\networkx\algorithms
    copying networkx\algorithms\block.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\boundary.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\clique.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\cluster.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\core.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\cycles.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\dag.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\distance_measures.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\distance_regular.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\dominance.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\dominating.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\euler.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\graphical.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\hierarchy.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\hybrid.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\isolate.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\link_prediction.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\matching.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\minors.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\mis.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\mst.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\richclub.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\simple_paths.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\smetric.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\swap.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\triads.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\vitality.py -> build\lib\networkx\algorithms
    copying networkx\algorithms\__init__.py -> build\lib\networkx\algorithms
    creating build\lib\networkx\algorithms\assortativity
    copying networkx\algorithms\assortativity\connectivity.py -> build\lib\networkx\algorithms\assortativity
    copying networkx\algorithms\assortativity\correlation.py -> build\lib\networkx\algorithms\assortativity
    copying networkx\algorithms\assortativity\mixing.py -> build\lib\networkx\algorithms\assortativity

[此处省略了几千行以使其适合]

    copying examples\algorithms\hartford_drug.edgelist -> e:\users\hackr\python\python35\share\doc\networkx-1.10\examples\algorithms
    copying examples\basic\properties.py -> e:\users\hackr\python\python35\share\doc\networkx-1.10\examples\basic
    copying examples\basic\read_write.py -> e:\users\hackr\python\python35\share\doc\networkx-1.10\examples\basic
    copying examples\3d_drawing\mayavi2_spring.py -> e:\users\hackr\python\python35\share\doc\networkx-1.10\examples\3d_drawing
    error: can't copy 'examples\drawing\atlas.py': doesn't exist or not a regular file

    ----------------------------------------


Command "e:\users\hackr\python\python35\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\hackr\\AppData\\Local\\Temp\\3\\pip-build-rk1n4got\\networkx\\setup.py';exec(compile(getattr(to
kenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\hackr\AppData\Local\Temp\3\pip-wi6hs7db-record\install-record.txt --single-version-externally
-managed --compile" failed with error code 1 in C:\Users\hackr\AppData\Local\Temp\3\pip-build-rk1n4got\networkx`

评论

0赞 Lav 1/12/2016
请仔细检查日志:实际错误应在此行上方的某个地方。它通常是这样的:actual error message ... some more text before script is finished ... message about script failing with error code
0赞 Hack-R 1/12/2016
@Lav我试图拉出日志,但奇怪的是,没有指示它的文件夹。我有一个,但之后的文件夹不存在......\AppData\Local\Temp\3
0赞 Lav 1/12/2016
我的意思是您粘贴错误消息的相同日志。如果在控制台输出中发现错误时遇到问题,请运行以将安装日志转储到文本文件,然后随意浏览它。pip3 install blah-blah-blah.whl > pip3.log
1赞 Lav 1/13/2016
顺便说一句,我建议将此问题报告给 scikit-image 团队。不确定这是否是他们的问题,但如果单独安装 networkx 没有问题,那么他们可能引用了不正确的构建或其他东西。

答:

2赞 Lav 1/12/2016 #1

这是罪魁祸首:

error: can't copy 'examples\drawing\atlas.py': doesn't exist or not a regular file

尝试作为依赖项安装的 networkx的安装包似乎有问题。在安装 之前尝试手动安装。如果问题仍然存在,我想你应该向 networkx bugtracker 报告。但是,如果它有效,那么我建议将其报告给团队 - 也许他们引用了不正确的构建或其他东西作为他们的依赖项。scikit-imagenetworkxscikit-imagescikit-image