我使用的是Python 2.5.4版,并安装了MySQL 5.0和Django.Django可以正常使用Python,但不适用于MySQL.我在Windows Vista中使用它.
numpy.distutils.system_info.BlasNotFoundError:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
Run Code Online (Sandbox Code Playgroud)
我需要从这个网站下载哪个tar?
我已经尝试了fortrans,但我一直收到这个错误(显然在设置了环境变量之后).
在Cygwin包中是否有类似于apt-getDebian或yumredhat的工具允许我从命令行安装组件?
我在学校的电脑上,所以我无法安装任何东西.
我正在尝试创建可以在Python中运行的C代码.看来我发现的所有文章都要求你使用
#include <Python.h>
Run Code Online (Sandbox Code Playgroud)
我这样做,但是当我编译它时抱怨没有这样的文件或目录.
计算机有Python(至少它python在终端中有命令,我们可以运行我们想要的任何Python代码).
我输入locate Python.h了终端,但没有发现任何东西.
我有两个问题:
我可以编写可以在Python中调用的C代码Python.h吗?
我错过了什么,计算机实际上有Python.h吗?
对于我使用的python 3.2 sudo apt-get install python3.2-numpy.它工作.怎么做python3.3?没有什么我能想到的工作.同样适用于scipy等.谢谢.
编辑:这是它的样子
radu@sunlit-inspired:~$ python3
Python 3.3.2 (default, Jul 3 2013, 10:17:40)
[GCC 4.6.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'numpy'
Run Code Online (Sandbox Code Playgroud) 我想运行一个别人准备的程序,它包括scipy.我曾尝试安装scipy
pip install scipy
Run Code Online (Sandbox Code Playgroud)
但它给了我一个很长的错误.我知道Anaconda和Canopy有各种各样的方法,但我认为这些方法很长.我想要一个简短的方法.我也试过了
G:\determinator_Oskar>pip install scipy
Collecting scipy
Using cached scipy-0.16.1.tar.gz
Building wheels for collected packages: scipy
Running setup.py bdist_wheel for scipy
Complete output from command g:\myve\scripts\python.exe -c "import setuptools;
__file__='e:\\temp_n~1\\pip-build-1xigxu\\scipy\\setup.py';exec(compile(open(__f
ile__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d e:\temp_
n~1\tmp07__zrpip-wheel-:
lapack_opt_info:
openblas_lapack_info:
libraries openblas not found in ['g:\\myve\\lib', 'C:\\']
NOT AVAILABLE
lapack_mkl_info:
mkl_info:
libraries mkl,vml,guide not found in ['g:\\myve\\lib', 'C:\\']
NOT AVAILABLE
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas,tatlas not found in g:\myve\lib
libraries lapack_atlas not found in g:\myve\lib …Run Code Online (Sandbox Code Playgroud) 环境:Linux Mint 17 Cinnamon.
显示此错误:
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)
在以下情况下尝试以下内容时virtualenv:
pip install lxml
pip install pillow
pip install pycrypto
pip install pymongo (fails but still shows in pip freeze)
Run Code Online (Sandbox Code Playgroud)
这里有几个解决方案建议安装python2.7-dev:
安装Pillow错误:安装脚本退出并显示错误:命令'x86_64-linux-gnu-gcc'失败,退出状态为1
通过pip安装错误在virtualenv中安装lxml:命令'x86_64-linux-gnu-gcc'失败
我对这个建议很困惑,因为我的理解是使用类似的东西:
sudo apt-get install python2.7-dev
Run Code Online (Sandbox Code Playgroud)
将它添加到Python的main*system*实例中,而不是将其添加到Python中virtualenv.(见 - https://unix.stackexchange.com/a/56392/92486)
我可以python2.7-dev只添加到virtualenvPython 的版本吗?
我正在尝试在CentOS机器上编译用C编写的Python扩展.我正进入(状态
error: Python.h: No such file or directory
Run Code Online (Sandbox Code Playgroud)
它在ubuntu上运行正常,我使用apt-get安装了python-dev.
我尝试使用安装python-devel
yum install python-devel
Run Code Online (Sandbox Code Playgroud)
但它已经安装好了.我该如何解决这个错误?
在这里采取形式- 解释如何安装apt-cyg
安装apt-cyg
你可能听说过的和apt-get(Ubuntu的),百胜/ DNF(Fedora的),吃豆子(ARCH),或冲泡键(Mac OS X)... ..关于Cygwin的.The类似的程序叫apt-CYG程序.
安装apt-cyg很简单.首先,保存此文件:https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg.然后,使用文件资源管理器在"下载"文件夹中查找该文件,并将其移动到C:\ cygwin\bin中.然后,打开Cygwin并输入"chmod + x/bin/apt-cyg".这告诉Cygwin你希望能够执行apt-cyg命令.最后,输入"apt- cyg mirror ftp://sourceware.org/pub/cygwin ".这会设置apt-cyg以在下载程序时使用官方存储库.
听起来很简单.但我有一个错误.
本教程未指定保存该文件的名称和扩展名.
我apt-cyg.txt把它保存为,并将其移入C:\cygwin64\bin
这不起作用.运行时apt-cyg,我收到错误:bad interpreter: No such file or directory
我的猜测是扩展或文件名很糟糕.我应该使用什么名称和扩展名?
这个过程还有更多步骤吗?
注意:我刚刚在Windows 10上安装了cygwin.请不要假设我已经安装了其他工具.
非零退出代码(1): _ pydevd_bundle/pydevd_cython.c:13:20:致命错误:Python.h:没有此类文件或目录编译终止.错误:命令'x86_64-linux-gnu-gcc'以退出状态1失败
请帮我解决尝试在PyCharm中安装Cython的错误.
python ×6
c ×2
cygwin ×2
numpy ×2
python-3.x ×2
centos ×1
command-line ×1
cython ×1
django ×1
header ×1
linux-mint ×1
pip ×1
pycharm ×1
python-2.7 ×1
python-2.x ×1
scipy ×1
ubuntu ×1
virtualenv ×1