相关疑难解决方法(0)

找不到vcvarsall.bat文件

我正在尝试使用pip在我的计算机上安装Scrapy.在大多数情况下它可以工作,但在安装后不久我得到一个错误,说"无法找到vcvarsall.bat.我已经四处寻求帮助,大多数消息来源说安装Visual Express 2008.但是,甚至执行此操作后,当我导航到C:\ Program Files(x86)\ Microsoft Visual Studio 8\VC时,我没有看到vcvarsall.bat文件.有什么想法吗?

python visual-studio-2008

5
推荐指数
1
解决办法
1万
查看次数

Windows上"无法找到vcvarsall.bat"错误

6小时前我开始寻找解决方案来编译Windows 7上的python 2.7的c扩展.

我尝试了所有可能的解决方案,比如使用较旧的MINGW版本或尝试使用tdm-mingw版本(4.4.)我也尝试更改

"-Wall -mno-cygwin"

来自cygwinccompiler并使用新版本创建了新文件distutils.cfg

但我仍然"至少"得到这个错误:

"错误:命令'gcc'失败,退出状态为1"

有没有人可以在windows下编译像"pip install lxml"这样的东西?

如果是的话...请分享你的智慧...;)你正在运行什么样的MINGW版本......你的python版本是什么?或者你修改的cygwinccompiler.py是怎样的?

python

5
推荐指数
1
解决办法
1万
查看次数

在Windows 7中安装gensim

我正在尝试安装gensim python库.但是我面临一些依赖性错误.我穿过树冠,穿着树冠.下一步使用pip install gensim以获取gensim包.但是我收到错误消息.我已经安装了python 2.7.4.我的机器上安装了visual studio 2010.

在此输入图像描述 在此输入图像描述

python gensim

5
推荐指数
1
解决办法
4134
查看次数

无法编译需要 C99 编译器 (AFAIU) 的 pyethash python 包。错误 - 无法打开包含文件:“alloca.h”

问题

手动或使用 pip 安装 pyethash 时,出现同样的错误:

致命错误 C1083:无法打开包含文件:“alloca.h”:没有此类文件或目录错误:命令“C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe”失败退出状态2

相关并已尝试过:

类似问题没有答案:

其他事实:

  • 成功安装需要 C++ 编译器的 Crypto 和 scrypt。
  • pyethash core.c 源文件头中提到了另外 3 个文件,这些文件在我的驱动器上的任何位置都不存在:
    • 分配器.h
    • stdint.h
    • 标准库文件

系统

python 2.7.11(v2.7.11:6d1b6a68f775,2015 年 12 月 5 日,20:40:30)[MSC v.1500 64 位(AMD64)],Windows 8.1 x64

...\ethash-master> python setup.py install

PS C:\pyethereum\ethash-master> python setup.py install
running install
running build
running build_ext
building 'pyethash' extension
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe …
Run Code Online (Sandbox Code Playgroud)

c c++ python compiler-errors c99

5
推荐指数
1
解决办法
2292
查看次数

在Windows 7上安装Python Fabric时出现问题

我正在尝试使用Windows上的获取Python和Fabric安装指南在Windows 7上安装Python Fabric .

到目前为止我做了什么:

到目前为止,这似乎工作正常.当我尝试安装Fabric时,easy_install Fabric它开始下载文件,但后来我得到了chmod error.

Using c:\python27\lib\site-packages\fabric-1.3.4-py2.7.egg  
Processing dependencies for fabric  
Searching for pycrypto>=2.1,!=2.4  
Reading http://pypi.python.org/simple/pycrypto/  
Reading http://pycrypto.sourceforge.net  
Reading http://www.amk.ca/python/code/crypto  
Reading http://www.pycrypto.org/  
Best match: pycrypto 2.5  
Downloading http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.5.tar.gz  
Processing pycrypto-2.5.tar.gz  
Running pycrypto-2.5\setup.py -q bdist_egg --dist-dir   c:\users\birgit\appdata\local\temp\easy_install-nzrlow\pycrypto-2.5\egg-dist-tmp-_pwkm4  
The command "chmod" is spelled wrong or could not be found.

Traceback (most recent call last):
 File "C:\Python27\Scripts\easy_install-script.py", line 8, in <module> …
Run Code Online (Sandbox Code Playgroud)

python easy-install windows-7 fabric

4
推荐指数
1
解决办法
4524
查看次数

无需安装即可使用 Pygame

我正在大学制作一个真正简单的角色扮演游戏,我想使用 pygame。然而,我的大学有一个组策略禁止任何 Windows 可执行文件运行,所以我无法安装 pygame。有什么方法可以通过将 pygame 放在同一文件夹中来导入它吗?

python pygame module

4
推荐指数
1
解决办法
5095
查看次数

在窗口中使用pip

我使用刚刚给出的链接安装了distributepip.我还安装了Microsoft Visual C++ 2008可再发行组件包.但是,当我尝试使用pip.exe时,我得到了

error: Unable to find vcvarsall.bat
Run Code Online (Sandbox Code Playgroud)

我怎样才能解决这个问题?

python windows pip

4
推荐指数
1
解决办法
1万
查看次数

尝试安装qrcode-0.2.1时出现"无法找到vcvarsall.bat"错误

请帮我解决这个错误

C:\Python26\Lib\site-packages\pyqrcode\encoder>python setup.py install
running install
running bdist_egg
running egg_info
writing qrcode.egg-info\PKG-INFO
writing top-level names to qrcode.egg-info\top_level.txt
writing dependency_links to qrcode.egg-info\dependency_links.txt
package init file 'qrcode\__init__.py' not found (or not a regular file)
writing manifest file 'qrcode.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
running build_ext
building 'qrcode.Encoder' extension
error: Unable to find vcvarsall.bat
Run Code Online (Sandbox Code Playgroud)

谢谢,

马努

python installation qr-code

3
推荐指数
1
解决办法
3万
查看次数

如何使用cython编译扩展?

我想从编译示例页面简单的用Cython扩展这里我的Windows 7 64位计算机上使用Python 2.6安装64位版本.我从Gohlke的页面安装了Cython 0.15.1 for Windows 64位版本.

基本上,这里这里的答案不是我的选择,因为我确实需要Python 64位版本来解决更大的内存.另外,因为我试图使用Microsoft SDK for .NET 4进行编译,所以我不能在后一种解决方案中使用该方法.

我尝试了这里的步骤并观察了绿色窗口,但编译现在抛出了cannot find vcvarsall.bat错误.以下是我尝试的命令序列:

C:\>cd "Program Files\Microsoft SDKs\Windows\v7.1\"
C:\Program Files\Microsoft SDKs\Windows\v7.1>set DISTUTILS_USE_SDK=1
C:\Program Files\Microsoft SDKs\Windows\v7.1>setenv /x64 /release

Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v7.1\.
Targeting Windows 7 x64 Release

C:\Program Files\Microsoft SDKs\Windows\v7.1>e:

E:\>cd cython

E:\cython>python setup.py build_ext --inplace
running build_ext
skipping 'fib.c' Cython extension (up-to-date)
building 'fib' extension
error: Unable to find …
Run Code Online (Sandbox Code Playgroud)

python windows 64-bit compiler-errors cython

3
推荐指数
2
解决办法
3791
查看次数

安装 glove-python-&gt; link.exe 时出错,退出状态为 1181

我正在尝试为 python 3.5 x64 安装 glove-python 包,但出现错误,如下所示。(注意:我在 Windows 10 上安装了 Visual C++ 2015 Build Tools)

注意:我搜索发现此错误可能是由于某些文件的目录名中存在空格所致https://support.microsoft.com/en-us/help/815645/you-receive-a-fatal-error -lnk1181-error-message-when-you-build-a-manag,并且我必须将包含空格的文件夹名称放在引号之间。但是如何更改路径,例如 LIPBATH 变量以添加引号?如何访问这些包含导致问题的路径的变量?

C:\Users\ESCA>pip3 install glove-python
Collecting glove-python
Using cached glove_python-0.1.0.tar.gz
Requirement already satisfied: numpy in c:\users\esca\appdata\local\programs\python\python35\lib\site-packages (from glove-python)
Requirement already satisfied: scipy in c:\users\esca\appdata\local\programs\python\python35\lib\site-packages (from glove-python)
Building wheels for collected packages: glove-python
Running setup.py bdist_wheel for glove-python ... error
Complete output from command c:\users\esca\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ESCA\\AppData\\Local\\Temp\\pip-build-dpaf49i6\\glove-python\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\ESCA\AppData\Local\Temp\tmp5fnavjwipip-wheel- --python-tag cp35:
 running bdist_wheel …
Run Code Online (Sandbox Code Playgroud)

build-tools windows-10 python-3.5

3
推荐指数
1
解决办法
2909
查看次数

Python安装错误:NumPy包

我正在尝试按照本教程并在执行以下操作时出错:

(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)

python

2
推荐指数
1
解决办法
9737
查看次数

无法安装python-docx

我需要通过Python 3.4在Word文档中创建表.为此,我试图python-docx在Windows中安装.如果我使用pip install python-docx我收到以下错误:

vcvarsall.bat error
Run Code Online (Sandbox Code Playgroud)

所以我安装了Visual Studio,然后尝试安装它,我仍然得到以下内容:

error: Setup script exited with error: command '"C:\Program Files (x86)\Microsoft Visual
Studio 10.0\VC\BIN\cl.exe"' failed with exit status 2
Run Code Online (Sandbox Code Playgroud)

python python-docx

1
推荐指数
1
解决办法
1万
查看次数