无法安装pyodbc [英] Unable to install pyodbc
问题描述
我正在使用python 3.3.0 ..在此软件包C:\ Python34 \ Scripts中是我的pip,并且已将此路径添加到我的系统和用户环境变量PATH中,该链接指向此pip文件夹,我已经安装了Visual C ++ 2010,但我不知道安装后是否需要做些什么,是否需要配置某些东西,但是当我这样做时:
I am using python 3.3.0 .. Within this package C:\Python34\Scripts is my pip and I have added this path to my system and user environment variable PATH the link to this pip folder,I have installed Visual C++ 2010 but i don't know what needs to be done once it is installed if or not i need to configure something, yet when I do :
C:\Python33\Scripts>pip install https://pyodbc.googlecode.com/files/pyodbc-3.0.7.zip
它给了我以下错误:
这是stackoverflow编辑器将其更改为:
Fatal error in launcher: Unable to create process using
'"C:\Python33\python.exe " "C:\Python33\Scripts\pip.exe" install
https://pyodbc.googlecode.com/files/pyo dbc-3.0.7.zip'
C:\Python33\Scripts>pip
Fatal error in launcher: Unable to create process using
'"C:\Python33\python.exe " "C:\Python33\Scripts\pip.exe" '
这是我在控制台上看到的实际错误:
ValueError:['path']
ValueError: ['path']
----------------------------------------
Command "C:\Python33\python.EXE -c "import setuptools, tokenize;__file__='c
\ users \ elyon \ appdata \ local \ temp \ pip-inh3nq-build \ setup.py'; exec(compi e(getattr(tokenize,'open',open)( file ).read().replace('\ r \ n', '\ n'),__ fil __,'exec'))安装--record c:\ users \ elyon \ appdata \ local \ temp \ pip-x45j1j- ecord \ install-record.txt-单一版本-外部管理 --compile失败,错误代码1在c:\ users \ elyon \ appdata \ local \ temp \ pip-inh3nq-build
\users\elyon\appdata\local\temp\pip-inh3nq-build\setup.py';exec(compi e(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), __fil __, 'exec'))" install --record c:\users\elyon\appdata\local\temp\pip-x45j1j- ecord\install-record.txt --single-version-externally-managed --compile" failed ith error code 1 in c:\users\elyon\appdata\local\temp\pip-inh3nq-build
推荐答案
由于您使用的是Windows上的Python 3.3,因此安装pyodbc
的最简单方法是使用提供的
Since you're on Windows with Python 3.3, the easiest way to install pyodbc
is to use the provided installers.
如果您愿意,那么您应该能够使用pip
管理将来的升级.
You should then be able to manage future upgrades using pip
if you so desire.
C:\Python33\Scripts> .\pip.exe install --upgrade --allow-external pyodbc --allow-unverified pyodbc pyodbc
最新要求:c:\ python33 \ lib \ site-packages中的pyodbc
Requirement already up-to-date: pyodbc in c:\python33\lib\site-packages
这篇关于无法安装pyodbc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!