尝试在Mavericks OS中安装Scrapy时出现以下错误.
我有命令行工具和X11安装我真的不知道发生了什么,我没有发现同样的错误浏览网页.我认为这可能与Xcode 5.1中的一些变化有关
谢谢你的回答!
这是命令输出的一部分:
$ pip install scrapy
.
.
.
.
Downloading/unpacking cryptography>=0.2.1 (from pyOpenSSL->scrapy)
Downloading cryptography-0.3.tar.gz (208kB): 208kB downloaded
Running setup.py egg_info for package cryptography
OS/X: confusion between 'cc' versus 'gcc' (see issue 123)
will not use '__thread' in the C code
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
Traceback (most recent call last):
File "<string>", line 16, in <module> …Run Code Online (Sandbox Code Playgroud) 我是Python的新手,我正在尝试基于http://nltk.org/install.html安装NLTK
我已经安装了所有东西,除了numpy(它说numpy是可选的但是当我尝试导入时nltk,它说有一个错误,因为它找不到numpy模块)
我跑完之后 sudo pip install -U numpy
我正在使用Mountain Lion,python v2.7.3在Mac上运行
我收到以下错误(我只包括日志的结尾):
在get_mathlib_info中输入文件"/private/tmp/pip-build/numpy/numpy/core/setup.py",第696行
引发RuntimeError("破碎的工具链:无法链接简单的C程序")
RuntimeError:破坏的工具链:无法链接简单的C程序
命令python setup.py egg_info失败,错误代码为/ tmp/pip-build/numpy
有没有人见过这种情况?
每当我编译Cython代码(使用pyximport)时,经常在我从源代码安装包时,pip我得到
clang: warning: argument unused during compilation: '-mno-fused-madd'
Run Code Online (Sandbox Code Playgroud)
这是什么警告,我该怎么做才能防止它?我怀疑我可能无法阻止何时pip触发它,但至少有一些方法可以配置pyximport以避免它?
OS X 10.9,Python 2.7.5,Xcode clang 500.2.79
我想在即将推出的项目中使用scikit-learn,我绝对无法安装它.我可以通过从源代码构建它们或通过pip安装其他软件包而不会出现问题.对于scikit-learn,我尝试在GitHub上克隆项目并通过pip安装但没有成功.有人可以帮忙吗?这是我的一部分pip.log:
Downloading/unpacking scikit-learn
Running setup.py egg_info for package scikit-learn
Warning: Assuming default configuration (scikits/learn/{setup_scikits.learn,setup}.py was not found)Warning: Assuming default configuration (sklearn/svm/tests/{setup_tests,setup}.py was not found)Appending scikits.learn configuration to
Ignoring attempt to set 'name' (from '' to 'scikits.learn')
Appending sklearn.check_build configuration to sklearn
Ignoring attempt to set 'name' (from 'sklearn' to 'sklearn.check_build')
Appending sklearn.svm.tests configuration to sklearn.svm
Ignoring attempt to set 'name' (from 'sklearn.svm' to 'sklearn.svm.tests')
blas_opt_info:
FOUND:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3)]
extra_compile_args = …Run Code Online (Sandbox Code Playgroud) 我设置了virtualenv,然后尝试MySQL-Python使用pip(after activating env)进行安装.我requirements.txt的如下:
MySQL-python==1.2.5
argparse==1.2.1
pymongo==2.6.3
wsgiref==0.1.2
Run Code Online (Sandbox Code Playgroud)
当我运行pip install -r requirement.txt.我得到一些输出的最后一行是:
RuntimeError: maximum recursion depth exceeded
Run Code Online (Sandbox Code Playgroud)
正如帖子中提到的,我甚至运行此命令来升级我的发行版:
easy_install distribute==0.6.28
Run Code Online (Sandbox Code Playgroud)
即使这样也行不通.我的python版本(在env中)是2.7.6,而Machine是Ubuntu 14.04
更新:堆栈跟踪如下:
Downloading/unpacking MySQL-python==1.2.5 (from -r requirements.txt (line 1))
Running setup.py (path:/root/frrole_backend_raw_dump/env/build/MySQL-python/setup.py) egg_info for package MySQL-python
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/root/frrole_backend_raw_dump/env/build/MySQL-python/setup.py", line 21, in <module>
setuptools.setup(**metadata)
File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 225, in __init__ …Run Code Online (Sandbox Code Playgroud) 我正在使用Python 2.7并且我正在尝试使用NLTK语音标记器,因为我没有安装numpy,因此会生成此错误:
> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/nltk/tag/__init__.py", line 99, in pos_tag
tagger = load(_POS_TAGGER)
File "/Library/Python/2.7/site-packages/nltk/data.py", line 605, in load
resource_val = pickle.load(_open(resource_url))
ImportError: No module named numpy.core.multiarray
Run Code Online (Sandbox Code Playgroud)
所以我从这里下载numpy 1.7.0,在我的下载文件夹中做了一个cd并做了python setup.py install并得到了这个错误:
Running from numpy source directory.
non-existing path in 'numpy/distutils': 'site.cfg'
F2PY Version 2
blas_opt_info:
FOUND:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3)]
extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
lapack_opt_info:
FOUND:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = …Run Code Online (Sandbox Code Playgroud) 我想安装pandas以便在Python中使用
我有最新版本的xcode和命令行工具,pip,easy_install,但安装这个一直给我以下错误,任何人都可以帮忙吗?
sudo easy_install pandas
> Best match: pandas 0.13.1
>Downloading https://pypi.python.org/packages/source/p/pandas/pandas-0.13.1.zip#md5=50e4902238dd5312c20c1c85fb024bb6
>Processing pandas-0.13.1.zip
>Running pandas-0.13.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-oU7Yfm/pandas-0.13.1/egg-dist-tmp-I4Mw_P
>warning: no files found matching 'README.rst' no previously-included directories found matching 'doc/build'
>warning: no previously-included files matching '*.so' found anywhere in distribution
>warning: no previously-included files matching '*.pyd' found anywhere in distribution
>warning: no previously-included files matching '*.pyc' found anywhere in distribution
>warning: no previously-included files matching '.git*' found anywhere in distribution
>warning: no previously-included files matching '.DS_Store' found anywhere …Run Code Online (Sandbox Code Playgroud) 我一直在尝试在 Mac OS X 10.9 上安装 rpy2,但我一直无法这样做。我认为 R 共享库存在问题,但我读到 R 安装时默认使用共享库选项。任何帮助将不胜感激!
这是日志:
Downloading from URL https://pypi.python.org/packages/source/r/rpy2/rpy2-2.3.9.tar.gz#md5=86851a56f637e7b87709eb2b91dc5075 (from https://pypi.python.org/simple/rpy2/)
Running setup.py (path:/private/tmp/pip_build_root/rpy2/setup.py) egg_info for package rpy2
running egg_info
creating pip-egg-info/rpy2.egg-info
writing dependency_links to pip-egg-info/rpy2.egg-info/dependency_links.txt
writing pip-egg-info/rpy2.egg-info/PKG-INFO
writing top-level names to pip-egg-info/rpy2.egg-info/top_level.txt
writing manifest file 'pip-egg-info/rpy2.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
"/opt/local/Library/Frameworks/R.framework/Resources/bin/R" CMD config --ldflags
"/opt/local/Library/Frameworks/R.framework/Resources/bin/R" CMD config --cppflags
"/opt/local/Library/Frameworks/R.framework/Resources/bin/R" CMD config LAPACK_LIBS
returned an empty string.
"/opt/local/Library/Frameworks/R.framework/Resources/bin/R" CMD config BLAS_LIBS
returned an empty string.
Configuration for R as a …Run Code Online (Sandbox Code Playgroud) 当我尝试pip install涉及C编译的事情(Pillow特别是)时,我得到一个奇怪的错误:
clang: error: no such file or directory: 'Python.framework/Versions/2.7/Python'
error: command 'clang' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/xt/f2d8vp4j65j2rt71pns6trjw0000gn/T/pip_build_jakob/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/xt/f2d8vp4j65j2rt71pns6trjw0000gn/T/pip-LnL0hW-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/xt/f2d8vp4j65j2rt71pns6trjw0000gn/T/pip_build_jakob/Pillow
Run Code Online (Sandbox Code Playgroud)
我认为这个问题是由于OSX 10.10 Yosemite和Homebrew python的结合.你以前经历过这个吗?关于如何解决它的想法?
我和一个朋友正试图通过DigitalOcean建立一个不和谐机器人.但是,当我们运行命令" sudo -H pip3.5 install --upgrade -r requirements.txt"或沿着这些行的某些东西时,它总是以相同的错误结束.我们已经尝试安装python,它已经是最新的.
这是日志.
You may need to use sudo to install dependencies.
Run Code Online (Sandbox Code Playgroud)
root @ discord-bot:〜/ RadioOP#sudo -H pip3.5 install --upgrade -r requirements.txt收集https://github.com/Rapptz/discord.py/archive/async.zip(来自-r要求) .txt(第1行))正在下载https://github.com/Rapptz/discord.py/archive/async.zip(442kB)100% |█████████████████ ███████████████| 450kB 2.5MB/s收集youtube_dl> = 2016.4.24(来自-r requirements.txt(第2行))使用缓存的youtube_dl-2016.6.3-py2.py3-none-any.whl收集aiohttp <0.22.0,> = 0.21.0(来自discord.py == 0.10.0a0 - > - r requirements.txt(第1行))使用缓存的aiohttp-0.21.6.tar.gz收集websockets == 3.1(来自discord.py == 0.10. 0a0 - > - r requirements.txt(第1行))使用缓存的websockets-3.1.tar.gz收集PyNaCl == 1.0.1(来自discord.py == 0.10.0a0 - > - r requirements.txt(第1行) )使用缓存的PyNaCl-1.0.1.tar.gz从命令python setup.py egg_info完成输出:
No working compiler found, or bogus compiler options …Run Code Online (Sandbox Code Playgroud) 这是错误日志:
building 'psycopg2._psycopg' extension
creating build/temp.macosx-10.9-intel-2.7
creating build/temp.macosx-10.9-intel-2.7/psycopg
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.5 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x090301 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/Library/PostgreSQL/9.3/include -I/Library/PostgreSQL/9.3/include/postgresql/server -c psycopg/psycopgmodule.c -o build/temp.macosx-10.9-intel-2.7/psycopg/psycopgmodule.o
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in …Run Code Online (Sandbox Code Playgroud) 我正在尝试从我的 python 应用程序中构建 docker 图像。但是当我将“snowflake-connector-python”添加到 pip requirements.txt 文件时,docker build 失败了。
要求.txt:-
boto3
pycryptodome
snowflake-connector-python
Run Code Online (Sandbox Code Playgroud)
Dockerfile:-
FROM python:alpine3.6
RUN python --version
COPY . /sample-app
WORKDIR /sample-app
RUN python -m pip install --upgrade pip
RUN pip install --upgrade setuptools
RUN pip --version
RUN pip install -r requirements.txt
CMD [ "python", "runner.py" ]
Run Code Online (Sandbox Code Playgroud)
CLI docker 构建:-
docker build -t sample-app:1.0 .
Run Code Online (Sandbox Code Playgroud)
错误 :-
Step 8/9 : RUN pip install -r requirements.txt
---> Running in 13ab5873e0b5
Collecting boto3 (from -r requirements.txt (line 1))
Downloading …Run Code Online (Sandbox Code Playgroud) python ×9
pip ×7
macos ×2
nltk ×2
numpy ×2
python-2.7 ×2
xcode ×2
bots ×1
clang ×1
command ×1
cython ×1
docker ×1
dockerfile ×1
linux ×1
mysql-python ×1
osx-yosemite ×1
pandas ×1
python-3.x ×1
rpy2 ×1
scikit-learn ×1
scikits ×1
scrapy ×1
snowflake-cloud-data-platform ×1
virtualenv ×1
x11 ×1
xcode5.1 ×1