- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我最近切换到 Anaconda Python 发行版,我正试图掌握其中的窍门。我想安装 this yaml-related package由于还没有 conda 配方,我试过了
conda pipbuild layered-yaml-attrdict-config
这导致了以下输出(我删除了系统路径中不相关的条目):
C:\Anaconda>conda install layered-yaml-attrdict-config
Fetching package metadata: ..
Error: No packages found matching: layered-yaml-attrdict-config
C:\Anaconda>conda pipbuild layered-yaml-attrdict-config
Fetching package metadata: ..
Creating standard recipe for layered-yaml-attrdict-config-14.06.7
Using url https://pypi.python.org/packages/source/l/layered-yaml-attrdict-config
/layered-yaml-attrdict-config-14.06.7.tar.gz (6147) for layered-yaml-attrdict-co
nfig.
Downloading layered-yaml-attrdict-config (use --no-download to skip this step)
Unpacking layered-yaml-attrdict-config...
done
working in c:\users\bnables\appdata\local\temp\1\tmp07kkdbconda_skeleton_layered
-yaml-attrdict-config
Fetching package metadata: ...
Solving package specifications: .
The following packages will be downloaded:
package | build
---------------------------|-----------------
python-2.7.7 | 2 17.1 MB
The following packages will be linked:
package | build
---------------------------|-----------------
python-2.7.7 | 2 hard-link
pyyaml-3.11 | py27_0 hard-link
setuptools-3.6 | py27_0 hard-link
Fetching packages ...
python-2.7.7-2 100% |###############################| Time: 0:00:08 2.00 MB/s
Extracting packages ...
[ COMPLETE ] |#################################################| 100%
Linking packages ...
[ COMPLETE ] |#################################################| 100%
Applying patch: u'c:\\users\\bnables\\appdata\\local\\temp\\1\\tmp07kkdbconda_sk
eleton_layered-yaml-attrdict-config\\pypi-distutils.patch'
Error:
Did not find 'patch' in: C:\Anaconda\envs\_build\Scripts;C:\Anaconda\Scripts
;C:\Anaconda;C:\Anaconda\Scripts
You can install 'patch' using apt-get, yum (Linux), Xcode (MacOSX),
or conda, cygwin (Windows),
conda create -n _pipbuild_ --yes python pip
Fetching package metadata: ..
Solving package specifications: .
Package plan for installation in environment C:\Anaconda\envs\_pipbuild_:
The following packages will be linked:
package | build
---------------------------|-----------------
pip-1.5.6 | py27_0 hard-link
python-2.7.7 | 2 hard-link
setuptools-3.6 | py27_0 hard-link
WARNING: the process C:\Anaconda\python.exe C:\Anaconda\Scripts\conda-script.py
pipbuild layered-yaml-attrdict-config (7712) is running
WARNING: the process C:\Anaconda\Scripts\conda-pipbuild.exe layered-yaml-attrdic
t-config (4596) is running
WARNING: the process C:\Anaconda\python.exe C:\Anaconda\Scripts\conda-pipbuild-s
cript.py layered-yaml-attrdict-config (7208) is running
WARNING: Continuing installation while the above processes are running is
not recommended. Please, close all Anaconda programs before installing or
updating things with conda.
Extracting packages ...
[ COMPLETE ] |#################################################| 100%
Linking packages ...
[ COMPLETE ] |#################################################| 100%
#
# To activate this environment, use:
# > activate _pipbuild_
#
C:\Anaconda\envs\_pipbuild_/bin/pip install layered-yaml-attrdict-config==14.06.
7
Traceback (most recent call last):
File "C:\Anaconda\Scripts\conda-pipbuild-script.py", line 4, in <module>
sys.exit(main())
File "C:\Anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 76, in
main
args.func(args, p)
File "C:\Anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 347, i
n execute
build_package(package, version)
File "C:\Anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 300, i
n build_package
directory, dependencies = make_recipe(package, version)
File "C:\Anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 244, i
n make_recipe
depends = get_all_dependencies(package, version)
File "C:\Anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 214, i
n get_all_dependencies
ret = subprocess.Popen(cmd2.split()).wait()
File "C:\Anaconda\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "C:\Anaconda\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
C:\Anaconda>
我不确定发生了什么,因为我不知道它在寻找什么文件,而且我对 conda 配方一无所知,除非它们应该很棒并且不会出现这些错误。
我希望通过 conda 安装,这样一切都可以由 conda 管理,而不是一些东西由 pip 管理。
深入研究 main_pipbuild.py
源代码,看起来它正在尝试运行 C:\Anaconda\envs\_pipbuild_\bin\pip install package==version
(使用适当的包和版本)。当我查看我的 C:\Anaconda\envs_pipbuild_ 时,没有 bin 文件夹,所以我猜测 pip 没有正确安装到 pipbuild 环境中。之前关于没有“补丁”的警告也可能是个问题……
使用 conda install patch
安装 patch
后,我再次尝试了以下结果:
C:\Anaconda>conda pipbuild layered-yaml-attrdict-config
Fetching package metadata: ..
Creating standard recipe for layered-yaml-attrdict-config-14.06.7
Using url https://pypi.python.org/packages/source/l/layered-yaml-attrdict-config/layered-yaml-attrdict-config-14.06.7.ta
r.gz (6147) for layered-yaml-attrdict-config.
Downloading layered-yaml-attrdict-config (use --no-download to skip this step)
Unpacking layered-yaml-attrdict-config...
done
working in c:\users\bnables\appdata\local\temp\1\tmp7cuibgconda_skeleton_layered-yaml-attrdict-config
Fetching package metadata: ...
Solving package specifications: .69 unparsed bytes left at the end of stream
file 1/1: core.py
hunk no.1 doesn't match source file at line 165
expected:
actual : raise SystemExit, "error: " + str(msg)
source file is different - core.py
Applying patch: u'c:\\users\\bnables\\appdata\\local\\temp\\1\\tmp7cuibgconda_skeleton_layered-yaml-attrdict-config\\pyp
i-distutils.patch'
Traceback (most recent call last):
File "C:\Anaconda\Scripts\conda-skeleton-script.py", line 4, in <module>
sys.exit(main())
File "C:\Anaconda\lib\site-packages\conda_build\main_skeleton.py", line 124, in main
args.func(args, p)
File "C:\Anaconda\lib\site-packages\conda_build\main_skeleton.py", line 135, in execute
pypi.main(args, parser)
File "C:\Anaconda\lib\site-packages\conda_build\pypi.py", line 314, in main
run_setuppy(src_dir, tempdir, args)
File "C:\Anaconda\lib\site-packages\conda_build\pypi.py", line 485, in run_setuppy
apply_patch(join(stdlib_dir, 'distutils'), patch)
File "C:\Anaconda\lib\site-packages\conda_build\source.py", line 202, in apply_patch
check_call([patch, '-p0', '-i', path], cwd=src_dir)
File "C:\Anaconda\lib\subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '[u'C:\\Anaconda\\Scripts\\patch.bat', u'-p0', u'-i', u'c:\\users\\bnables\\appda
ta\\local\\temp\\1\\tmp7cuibgconda_skeleton_layered-yaml-attrdict-config\\pypi-distutils.patch']' returned non-zero exit
status -1
conda create -n _pipbuild_ --yes python pip
Error: prefix already exists: C:\Anaconda\envs\_pipbuild_
C:\Anaconda\envs\_pipbuild_/bin/pip install layered-yaml-attrdict-config==14.06.7
Traceback (most recent call last):
File "C:\Anaconda\Scripts\conda-pipbuild-script.py", line 4, in <module>
sys.exit(main())
File "C:\Anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 76, in main
args.func(args, p)
File "C:\Anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 347, in execute
build_package(package, version)
File "C:\Anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 300, in build_package
directory, dependencies = make_recipe(package, version)
File "C:\Anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 244, in make_recipe
depends = get_all_dependencies(package, version)
File "C:\Anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 214, in get_all_dependencies
ret = subprocess.Popen(cmd2.split()).wait()
File "C:\Anaconda\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "C:\Anaconda\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
所以它可能在 Solving package specifications: .69 unparsed bytes left at the end of stream
处发现了包的某种问题。然后它做了这个显然失败的补丁。然后它尝试执行 pip install
并且在 pipbuild 环境中再次找不到 bin/pip 目录。
它应该在 C:\Anaconda\envs\_pipbuild_\Scripts\pip.exe
中寻找 pip 吗?因为那确实存在。
如果这是一个错误,请在此处报告它:https://github.com/conda/conda-build/issues .我会等待反馈后再做更多。
任何帮助都会很棒!
最佳答案
我在尝试使用“conda pipbuild package-name”构建 PyPI 包时遇到了类似的问题,但我无法让它在 Windows 7 (x64) 上运行。我发现的一种有用的解决方法(如果您想将带有“conda install package-name”的软件包安装到特定的 conda 环境中)如下:
关于python - Anaconda Python Conda pipbuild 因 WindowsError 找不到文件而失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24335854/
我正在使用以下脚本以静默模式在机器上安装(重新安装)最新的 anaconda。它已经运行了很长时间,成功安装了anaconda。然而,它最近坏了,现在不是安装所有的 anaconda 包,而是最终安装
我最近运行了 conda update --all,现在每次我打开一个新终端时,我都会在顶部看到这些错误行: ERROR: This cross-compiler package contains n
如果你这样做 conda info --envs您将获得在 anaconda 中创建的环境列表 有没有办法做到这一点,但还要获得这些环境的创建日期? 最佳答案 envs=`conda env list
我的电脑:Mac Book Pro、OS X Yosemite 我正在尝试使用以下命令卸载 anaconda。 rm -rf ~/anaconda 但是,我收到了很多行“权限被拒绝”的信息,看起来像这
我尝试安装 GraphLab Create,因此我创建了一个新的 Anaconda 环境,但它显示缺少依赖项。我不知道如何删除它。 终端: C:\Users\PC>conda create -n gl
我最近通过使用以下命令中断了Anaconda Navigator的安装: conda update --all -y 显然,这并不少见,这是重新安装Anaconda并从头开始创建新环境的好借口。 但是
我想更新我当前使用的所有包。进入 anaconda 提示符并输入 conda update --all 返回消息“所有请求的包都已安装”。事实并非如此,因为我的包裹中几乎有一半已经过时了。我知道 an
我使用的是 64 位 Windows 10 机器。我试图按照 this DataCamp 中提到的步骤安装 Anaconda页。我期待一个 .exe 文件,相反,我得到了一个 .pkg 文件。我不知道
我收到此错误: C:\Users>conda install pytorch torchvision -c soumith Fetching package metadata ............
我需要从 Windows 10 笔记本电脑上卸载 Anaconda 中的 RStudio,但无法使其正常工作。以下是原因以及我迄今为止所做的尝试。 尝试从 Anaconda 启动 RStudio De
我通过 Anaconda 使用 Rstudio 一段时间了,一切都很顺利。但是,在没有任何先前问题的情况下,当我尝试运行 Rstudio 时,会弹出一个导航窗口,询问保存下载文件的目录 我只是尝试选择
与这个问题部分相关 [现在从 SO 中删除] 但现在只专注于在 Anaconda 中安装 Anaconda 目录中不存在的包 here .一个例子可以是 COIN-OR CLP 包 here在 R 中
只是想知道更新 Anaconda 和 Conda 安装和虚拟环境的正确方法是什么。这是我一步一步的困惑: 当我运行命令时 conda update anaconda ,它更新/降级了很多包。 然后我跑
我想我需要在他们最近的许可证更改后获得 Anaconda 的商业许可证。我很好奇,访问 conda-forge 存储库是否需要商业许可证,因为它是一个社区存储库?还是仅适用于主要的 anaconda
显然,Anaconda 有一个不同的金字塔包,它是针对 Web 框架的。 https://anaconda.org/anaconda/pyramid arima Pyramid 的用户指南建议使用 p
我关注了以下instructions安装 Jupyter 笔记本(单用户模式)。 但是,我实际上需要安装多用户(Jupyter-hub)应用程序。 如何卸载此应用程序? 仅供引用 - 使用 Cento
我最近尝试为我的 Windows 10 笔记本电脑安装 Anaconda。不幸的是,这似乎不起作用,因为我的计算机上似乎没有实际的 Anaconda 应用程序,而只是桌面上的文件夹和文件的集合。我认为
我的机器上安装了 Anaconda 3.5 版,但我决定卸载它(通过控制面板)并下载 2.7 版。我正在使用 Windows 7。 但是,在安装快要结束时我收到一条错误消息,我收到一个弹出窗口说:无法
我最近重置了我的笔记本电脑并在其中安装了 anaconda,我尝试打开 jupyter 实验室但它给了我错误 Error executing Jupyter command 'lab': [WinEr
我使用 Anaconda Navigator 从不同环境启动 Jupyter。 Jupyter 笔记本的默认目录(在 Jupyter 启动后显示)是我的主目录(在 Windows 7 中)。 是否可以
我是一名优秀的程序员,十分优秀!