我试图用PyCharm安装numpy但我一直收到这个错误:
错误:需要Microsoft Visual C++ 10.0(无法找到vcvarsall.bat).
有人可以向我解释我必须做些什么来解决这个错误(并尽可能简单和详细)?即时通讯使用python 3.4.2(我知道这已经回答过,但我不明白).
我已经安装了MSVC++ 2010 Express,而我的vcvarsall.bat文件C:\Program Files\Microsoft Visual Studio 10.0\VC位于我的系统PATH中.当我运行时easy_install,它找不到vcvarsall.bat.
我需要在distutils.cfg文件中设置一些东西来指向我的MSVC++安装吗?
G:\>easy_install hg-git
install_dir C:\Python26\Lib\site-packages\
Searching for hg-git
Best match: hg-git 0.2.6
Processing hg_git-0.2.6-py2.6.egg
hg-git 0.2.6 is already the active version in easy-install.pth
Using c:\python26\lib\site-packages\hg_git-0.2.6-py2.6.egg
Processing dependencies for hg-git
Searching for dulwich>=0.6.0
Reading http://pypi.python.org/simple/dulwich/
Reading http://samba.org/~jelmer/dulwich
Reading http://launchpad.net/dulwich
Best match: dulwich 0.7.1
Downloading http://www.samba.org/~jelmer/dulwich/dulwich-0.7.1.tar.gz
Processing dulwich-0.7.1.tar.gz
Running dulwich-0.7.1\setup.py -q bdist_egg --dist-dir c:\docume~1\mlin\locals~1
\temp\easy_install-fhraep\dulwich-0.7.1\egg-dist-tmp-qozily
error: Setup script exited with error: Unable to find vcvarsall.bat
Run Code Online (Sandbox Code Playgroud) 我花了好几个小时试图让Django在我的电脑上工作.问题是我无法安装mysql-python包.我正在运行Windows 7 64位.这就是我尝试过的:
我已经用Google搜索了这个问题一千次,所以如果有人能帮助我,我将非常感激.提前致谢!
编辑:我发现了这个:https://pypi.python.org/pypi/MySQL-python/1.2.5.这是否意味着我不能用python 3.3运行Django?如果那里有.exe文件,为什么还要费心去完成所有这些工作呢?
所以我发现帮助安装cx_Oracle但仍然卡住了.我从oracle下载了最新的instantclient,并将ORACLE_HOME设置为解压缩文件的位置(直接和ORACLE_HOME值与文件之间的bin文件夹),但easy_install在运行setup.py时弹出错误说它可以'找到Oracle包含文件.我注意到文件夹中只有11g dll,我是否需要所有3个驱动程序才能完成设置?如果是这样,我在哪里获得它们?
我根本无法在Windows上安装NumPy.我一直收到这个错误 -
PS C:\python27> pip install http://sourceforge.net/projects/numpy/file/NumPy/
Collecting http://sourceforge.net/projects/numpy/files/NumPy/
Downloading http://sourceforge.net/projects/numpy/files/NumPy/ (58kB)
100% |################################| 61kB 15kB/s
Cannot unpack file c:\users\toshiba\appdata\local\temp\pip-qev4rz-unpack\NumPy
(downloaded from c:\users\toshiba\appdata\local\temp\pip-omripn-build, content-type: text/html; charset=utf-8); cannot detect archive format
Cannot determine archive format of c:\users\toshiba\appdata\local\temp\pip-omripn-build
Run Code Online (Sandbox Code Playgroud)
我之前有Python 64位版本,我不确定NumPy版本是否与64位Python兼容.所以我卸载它并安装了32位Python版本.但我仍然得到同样的错误.虽然我的Python 32位版本运行正常.
我试过"pip install numpy",但最后给了我以下错误 -
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
error: Unable to find vcvarsall.bat
----------------------------------------
Command "C:\Python27\python.exe -c "import setuptools,tokenize;__file__='c:\\users\\toshiba\\appdata\\local\\temp\\pip-build-hdhqex\\numpy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'),__file__, 'exec'))" install --record c:\users\toshiba\appdata\local\temp\pip-x_6llm-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\toshiba\appdata\local\temp\pip-build-hdhqex\numpy
Run Code Online (Sandbox Code Playgroud)
请告诉我我可能做错了什么.
我正在尝试按照本教程并在执行以下操作时出错:
(DataVizProject) $ pip install -r requirements.txt
Run Code Online (Sandbox Code Playgroud)
它给了我一个很大的错误日志,最后几行是:
C:\python\new-coder\dataviz\DataVizProj\build\numpy\numpy\distutils\system_info.
py:1422: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
warnings.warn(LapackSrcNotFoundError.__doc__)
error: Unable to find vcvarsall.bat
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in C:\python\new-coder
\dataviz\DataVizProj\build\numpy
Run Code Online (Sandbox Code Playgroud)
我知道它不起作用,因为当我执行以下步骤时:
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named …Run Code Online (Sandbox Code Playgroud) 在Windows上安装Kivy的过程中,我发现我需要Cython.
easy_install cython,但这给出了以下错误:error: Unable to find vcvarsall.batpython setup.py install,我看到了同样的错误.我该如何安装Cython?没有这个'vcvarsall.bat'错误.
我正在运行Windows 32位.


python ×7
easy-install ×2
numpy ×2
windows ×2
cx-oracle ×1
cython ×1
distutils ×1
django ×1
download ×1
mysql ×1
mysql-python ×1
pip ×1
pycharm ×1
python-3.x ×1