error: Unable to find vcvarsall.bat on python 3.5

WIN 10 64BIT,PYTHON 3.5 When i try install numpy or any other package with pip rises this error: C:UsersMyUser>pip install numpy Collecting numpy Using cached numpy-1.10.1.tar.gz Installing collected packages: numpy Running setup.py install for numpy Complete output from command c:usersMyUserappdatalocalprogramspythonpython35python.exe -c "import setuptools, tokenize;__file__='C:\Users\

错误:无法在python 3.5上找到vcvarsall.bat

WIN 10 64BIT,PYTHON 3.5 当我尝试安装numpy或任何其他与PIP包升起这个错误: C:UsersMyUser>pip install numpy Collecting numpy Using cached numpy-1.10.1.tar.gz Installing collected packages: numpy Running setup.py install for numpy Complete output from command c:usersMyUserappdatalocalprogramspythonpython35python.exe -c "import setuptools, tokenize;__file__='C:\Users\MyUser\AppData\Local\Te

Python Pip install Error: Unable to find vcvarsall.bat. Tried all solutions

This question already has an answer here: error: Unable to find vcvarsall.bat 40 answers I have tried all suggestions and found my own simple solution. The problem is that codes written in external environment like C need compiler. Look for its own VS environment, ie VS 2008. Currently my machine runs VS 2012 and faces Unable to find vcvarsall.bat . I studied codes that i want to instal

Python Pip安装错误:无法找到vcvarsall.bat。 试过所有的解决方案

这个问题在这里已经有了答案: 错误:无法找到vcvarsall.bat 40个答案 我尝试了所有建议并找到了自己的简单解决方案。 问题是像C这样的外部环境编写的代码需要编译器。 寻找自己的VS环境,即VS 2008。 目前我的机器运行VS 2012并面临Unable to find vcvarsall.bat 。 我研究了我想要安装的代码来查找VS版本。 这是VS 2008。我添加了系统变量VS90COMNTOOLS作为变量名,并给出了VS120COMNTOOLS的值。 您可以在下面找

Failed to install Python Cryptography package with PIP and setup.py

When I try to install the Cryptography package for Python through either pip install cryptography or by downloading the package from their site and running python setup.py , I get the following error: D:AnacondaScriptspip-script.py run on 02/27/14 16:13:17 Downloading/unpacking cryptography Getting page https://pypi.python.org/simple/cryptography/ URLs to search for versions for cryptography

无法使用PIP和setup.py安装Python加密包

当我尝试通过pip install cryptography安装Cryptography软件包或从他们的站点下载软件包并运行python setup.py ,出现以下错误: D:AnacondaScriptspip-script.py run on 02/27/14 16:13:17 Downloading/unpacking cryptography Getting page https://pypi.python.org/simple/cryptography/ URLs to search for versions for cryptography: * https://pypi.python.org/simple/cryptography/ Analyzing links from page h

fatal error: Python.h: No such file or directory

This question already has an answer here: I have Python on my Ubuntu system, but gcc can't find Python.h 12 answers Looks like you haven't properly installed the header files and static libraries for python dev. Use your package manager to install them system-wide. For apt ( Ubuntu, Debian... ): sudo apt-get install python-dev # for python2.x installs sudo apt-get install python

致命错误:Python.h:没有这样的文件或目录

这个问题在这里已经有了答案: 我的Ubuntu系统上有Python,但gcc无法找到Python.h 12个答案 看起来你没有正确安装python dev的头文件和静态库。 使用你的软件包管理器在系统范围内安装它们。 对于apt ( Ubuntu,Debian ... ): sudo apt-get install python-dev # for python2.x installs sudo apt-get install python3-dev # for python3.x installs 对于yum ( CentOS,RHEL ... ): sudo yum install python-d

config executable not found

I am having trouble installing psycopg2. I get the following error when I try to pip install psycopg2 : Error: pg_config executable not found. Please add the directory containing pg_config to the PATH or specify the full executable path with the option: python setup.py build_ext --pg-config /path/to/pg_config build ... or with the pg_config option in 'setup.cfg'. ------------------

找不到config可执行文件

我在安装psycopg2时遇到问题。 当我尝试pip install psycopg2时,出现以下错误: Error: pg_config executable not found. Please add the directory containing pg_config to the PATH or specify the full executable path with the option: python setup.py build_ext --pg-config /path/to/pg_config build ... or with the pg_config option in 'setup.cfg'. ---------------------------------------- Comma

Python pip install fails: invalid command egg

I find that recently often when I try to install a Python package using pip, I get the error(s) below. I found a reference online that one has to use "python2 setup.py install" from the download directory, and indeed find that this will then work if I manually find and download the package (from pypi). But, I don't know where pip is downloading packages to, and/or why it is fail

Python pip安装失败:命令无效

我发现最近经常在我尝试使用pip安装Python包时,出现下面的错误。 我在网上发现一个参考文献,必须从下载目录中使用“python2 setup.py install”,并且确实发现如果我手动查找并下载软件包(来自pypi),那么这将会起作用。 但是,我不知道pip下载软件包的位置,以及/或者为什么它以这种方式失败。 我试图做一个点子升级,但它也以类似的方式失败,有一堆“未知分布选项”错误(entry_points,zip_safe,test_suite,tests_re

No module named pkg

I'm deploying a Django app to a dev server and am hitting this error when i run pip install requirements.txt: Traceback (most recent call last): File "/var/www/mydir/virtualenvs/dev/bin/pip", line 5, in <module> from pkg_resources import load_entry_point ImportError: No module named pkg_resources pkg_resources appears to be distributed with setuptools. Initially I thought this

没有名为pkg的模块

我正在将一个Django应用程序部署到开发服务器,并且在运行pip install requirements.txt时遇到了此错误: Traceback (most recent call last): File "/var/www/mydir/virtualenvs/dev/bin/pip", line 5, in <module> from pkg_resources import load_entry_point ImportError: No module named pkg_resources pkg_resources似乎与setuptools一起分发。 最初我以为这可能没有安装到virtualenv中的python中,所以我

Python and pip, list all versions of a package that's available?

Given the name of a Python (2.X) package that can be installed with pip and virtualenv, is there any way to find out a list of all the possible versions of it that pip could install? Right now it's trial and error. I'm trying to install a version for a third party library, but the newest version is too new, there were backwards incompatible changes made. So I'd like to somehow hav

Python和pip列出了可用包的所有版本?

鉴于可以使用pip和virtualenv安装的Python(2.X)软件包的名称,是否有任何方法可以找出pip可以安装的所有可能版本的列表? 现在它是试验和错误。 我正在尝试为第三方库安装一个版本,但最新版本太新了,所做的反向不兼容更改。 所以我想以某种方式列出所有pip知道的版本,以便我可以测试它们。 pastebin中的脚本确实有效。 但是,如果您使用多个环境/主机,则不太方便,因为您必须每次都复制/创建它。 一个更好的全面

Compiling with cython and mingw produces gcc: error: unrecognized command line option '

I'm trying to compile a python extension with cython in win 7 64-bit using mingw (64-bit). I'm working with Python 2.6 (Active Python 2.6.6) and with the adequate distutils.cfg file (setting mingw as the compiler) When executing > C:Python26programasCython>python setup.py build_ext --inplace I get an error saying that gcc has not an -mno-cygwin option: > C:Python26programa

用cython和mingw编译会产生gcc:error:无法识别的命令行选项'

我正在尝试使用mingw(64位)在win 7 64位中编译一个带有cython的python扩展。 我正在使用Python 2.6(Active Python 2.6.6)以及足够的distutils.cfg文件(将mingw设置为编译器) 执行时 > C:Python26programasCython>python setup.py build_ext --inplace 我得到一个错误,说gcc没有-mno-cygwin选项: > C:Python26programasCython>python setup.py build_ext --inplace running build_ext skipping 'hello2

Errors while building/installing C module for Python 2.7

I'm trying getting the following errors while trying to install/compile ctools for python (version info) ActivePython 2.7.2.5 (ActiveState Software Inc.) based on Python 2.7.2 (default, Jun 24 2011, 12:22:14) [MSC v.1500 64 bit (AMD64)] on win32 OS: Windows 7 Professional 64-bit (Service Pack 1) Installed: Microsoft Visual C++ 2008 Express Edition Error: building 'deap.cTools' extensio

为Python 2.7构建/安装C模块时出错

我想尝试安装/编译python的python(版本信息)时出现以下错误: ActivePython 2.7.2.5 (ActiveState Software Inc.) based on Python 2.7.2 (default, Jun 24 2011, 12:22:14) [MSC v.1500 64 bit (AMD64)] on win32 操作系统:Windows 7 Professional 64位(Service Pack 1) 安装:Microsoft Visual C ++ 2008速成版 错误: building 'deap.cTools' extension Traceback (most recent call last): File "setup.py", li