我正在尝试运行gem install json并得到以下错误
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling generator.c
linking shared-object json/ext/generator.bundle
clang: error: unknown argument: '-multiply_definedsuppress' [-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
make: *** [generator.bundle] Error 1
make failed, exit code 2
Gem files will remain installed in /opt/boxen/repo/.bundle/ruby/2.0.0/gems/json-1.8.0 for inspection.
Results logged to /opt/boxen/repo/.bundle/ruby/2.0.0/extensions/universal-darwin-13/2.0.0/json-1.8.0/gem_make.out
Run Code Online (Sandbox Code Playgroud)
我正在使用:
Os X:10.9.2
Xcode:5.1构建版本5B130a
命令行工具(CLT):5.1.0.0.1.1393561416
Ruby:ruby 2.0.0p247(2013-06-27修订版41674)[universal.x86_64-darwin13]
Ruby Gem:2.2 …
在下载的时候pip install allennlp==1.0.0 allennlp-models==1.0.0,我遇到了这样的问题:
[6 lines of output]\n running bdist_wheel\n running build\n running build_py\n running build_ext\n building \'srsly.msgpack._unpacker\' extension\n error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/\n [end of output]\n\n note: This error originates from a subprocess, and is likely not a problem with pip.\n ERROR: Failed building wheel for srsly\n Failed to build thinc blis srsly\n ERROR: Could not build wheels for srsly, which is required to …Run Code Online (Sandbox Code Playgroud) 我在我的mac os x上为python 2.7.3成功构建/安装了NumPy.现在我想建立/安装scipy.我从git hub下载了它.进入目录.Ran python setup.py build,它似乎一直在工作,直到遇到这个错误:
customize Gnu95FCompiler
Could not locate executable gfortran
Could not locate executable f95
customize NAGFCompiler
customize AbsoftFCompiler
Could not locate executable f90
Could not locate executable f77
customize IBMFCompiler
Could not locate executable xlf90
Could not locate executable xlf
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize GnuFCompiler
Could not locate executable g77
customize G95FCompiler
Could not locate executable g95
customize PGroupFCompiler
Could not locate executable pgfortran
don't …Run Code Online (Sandbox Code Playgroud) 我正在尝试在基于Alpine 3.1的docker容器中安装numpy.我正在使用以下Dockerfile:
FROM alpine:3.1
RUN apk add --update make cmake gcc g++ gfortran
RUN apk add --update python py-pip python-dev
RUN pip install cython
RUN pip install numpy
Run Code Online (Sandbox Code Playgroud)
这运行正常,直到pip install numpy我收到以下错误:
error: Command "gcc -fno-strict-aliasing -Os -fomit-frame-pointer -DNDEBUG -Os -fomit-frame-pointer -fPIC -Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python2.7 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -c build/src.linux-x86_64-2.7/numpy/core/src/npymath/ieee754.c -o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/numpy/core/src/npymath/ieee754.o" failed with exit status 1
Run Code Online (Sandbox Code Playgroud)
easy_install-2.7 numpy 给出了同样的错误.
我缺少任何配置/安装步骤吗?
所以我现在正在尝试使用python,以便它会收到一封电子邮件并打开一个附件,我发现需要的其中一个导入是matplotlib.pyplot作为plt.这反过来需要Numpy和matplotlib,其中matplotlib很容易导入,但我不能为我的生活让NumPy工作.我尝试通过存储库,解压缩文件,使用Xcode,终端和自制程序,但没有一个工作.我目前正在尝试使用终端,但每当我尝试安装NumPy时,它都会失败.一位朋友建议输入"sudo python setup.py build",然后输入"sudo python setup.py install",但是发生了一个错误,说没有像setup.py这样的文件或目录.任何人都可以解释一个安装NumPy的方法,它将适用于python 3.3(我看到的大多数是2.7,我没有),这不会让我疯狂吗?(如果我问的问题对某些人来说看起来很荒谬,我只是一个以前从未做过这样的高中生,所以我迫切需要帮助)
我是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
有没有人见过这种情况?
当我尝试导入numpy时,我收到以下错误:
/usr/local/lib/python2.7/dist-packages/numpy/linalg/__init__.py in <module>()
49 from .info import __doc__
50
---> 51 from .linalg import *
52
53 from numpy.testing import Tester
/usr/local/lib/python2.7/dist-packages/numpy/linalg/linalg.py in <module>()
27 )
28 from numpy.lib import triu, asfarray
---> 29 from numpy.linalg import lapack_lite, _umath_linalg
30 from numpy.matrixlib.defmatrix import matrix_power
31 from numpy.compat import asbytes
ImportError: /usr/lib/liblapack.so.3: undefined symbol: gotoblas
Run Code Online (Sandbox Code Playgroud)
我已经尝试过解决方案发布错误导入numpy:lapack_lite.so:未定义符号和GotoBLAS错误安装matplotlib与pip在virtualenv上debian wheezy
我已经尝试了以下所有选项:
vvkulkarni@galileo:~$ sudo update-alternatives --config liblapack.so.3
There are 3 choices for the alternative liblapack.so.3 (providing /usr/lib/liblapack.so.3).
Selection Path Priority Status …Run Code Online (Sandbox Code Playgroud) 系统:
Windows 10
Python 3.7
Numpy 1.15.1
VS 2017
Run Code Online (Sandbox Code Playgroud)
我不认为这是重复的,因为以下提议的决议失败了:
附加说明: 我没有网络访问权限,所以我使用的是“basket”,我的安装行如下:
pip install --no-index -f .basked numpy
Run Code Online (Sandbox Code Playgroud)
我已经在运行这个command prompt,power shell和VS command prompt
回溯中的最终错误:
377, in generate_sources
source = func(extension, build_dir)
File …Run Code Online (Sandbox Code Playgroud) 您好 pip install pandas 时报错,无法安装成功。Linux系统:alpine linux
\nroot@qinglong:/ql/config $ pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pandas\n查看索引:https://pypi.tuna.tsinghua.edu.cn/simple \ n收集 pandas\n使用缓存的https://pypi.tuna.tsinghua.edu.cn/packages/4d/aa/e7078569d20f45e8cf6512a24bf2945698f13a7975650773c01366ea96dc/pandas-1.4.0.tar.gz (4.9 MB)\n安装构建依赖项... 错误\n错误:子进程退出并出现错误
\n \xc3\x97 pip subprocess to install build dependencies did not run successfully.\n \xe2\x94\x82 exit code: 1\n \xe2\x95\xb0\xe2\x94\x80> [272 lines of output]\n Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple\n Collecting setuptools>=51.0.0\n Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ad/65/7b98718c0ecebbdae5a5251fffc43dd3800ff3d1a6f7cc1aa09cfbcf17a5/setuptools-60.8.2-py3-none-any.whl (1.1 MB)\n Collecting wheel\n Using cached https://pypi.tuna.tsinghua.edu.cn/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl (35 kB)\n Collecting Cython<3,>=0.29.24\n Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6f/f5/18bb7c9b9e992141f4212dc358a7b06d24c79dee6b9c51658c7e86c767e1/Cython-0.29.27-cp39-cp39-musllinux_1_1_x86_64.whl (2.1 MB)\n Collecting oldest-supported-numpy>=0.10\n Using cached https://pypi.tuna.tsinghua.edu.cn/packages/45/77/6ccb4e20a4e86e8711c512ae88bd7db8d8e895692eba8c2f519eccbb619e/oldest_supported_numpy-2022.1.30-py3-none-any.whl (3.9 kB)\n Collecting numpy==1.19.3\n Using cached https://pypi.tuna.tsinghua.edu.cn/packages/cb/c0/7b3d69e6ee68bc54c97ba51f8c3c3e43ff1dbc7bd97347cc19a1f944e60a/numpy-1.19.3.zip …Run Code Online (Sandbox Code Playgroud) numpy ×6
python ×6
macos ×3
pip ×2
python-3.x ×2
allennlp ×1
alpine-linux ×1
blas ×1
docker ×1
fortran ×1
lapack ×1
matplotlib ×1
nltk ×1
openblas ×1
python-2.7 ×1
ruby ×1
rubygems ×1
scipy ×1