Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python setup.py egg_info #89

Closed
crack00r opened this issue Jul 21, 2016 · 2 comments
Closed

python setup.py egg_info #89

crack00r opened this issue Jul 21, 2016 · 2 comments

Comments

@crack00r
Copy link

i have installed Visual Studio COmmunity, but still get this error, may any help?

C:\Users\Manuel\Desktop>pip install pyproj-1.9.5.1.tar.gz
Processing c:\users\manuel\desktop\pyproj-1.9.5.1.tar.gz
Complete output from command python setup.py egg_info:
using bundled proj4..
Traceback (most recent call last):
File "", line 1, in
File "c:\users\manuel\appdata\local\temp\pip-m2wkql-build\setup.py", line 72, in
objects = cc.compile(['nad2bin.c', 'src/pj_malloc.c'])
File "c:\python27\lib\distutils\msvc9compiler.py", line 473, in compile
self.initialize()
File "c:\python27\lib\distutils\msvc9compiler.py", line 383, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "c:\python27\lib\site-packages\setuptools\msvc.py", line 172, in msvc9_query_vcvarsall
return EnvironmentInfo(arch, ver).return_env()
File "c:\python27\lib\site-packages\setuptools\msvc.py", line 1102, in return_env
[self.VCIncludes,
File "c:\python27\lib\site-packages\setuptools\msvc.py", line 810, in VCIncludes
return [os.path.join(self.si.VCInstallDir, 'Include'),
File "c:\python27\lib\site-packages\setuptools\msvc.py", line 540, in VCInstallDir
python_vc = self.ri.lookup(reg_path, 'installdir')
File "c:\python27\lib\site-packages\setuptools\msvc.py", line 450, in lookup
bkey = winreg.OpenKey(hkey, key, 0, winreg.KEY_READ)
WindowsError: [Error 2] Das System kann die angegebene Datei nicht finden

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in c:\users\manuel\appdata\local\temp\pip-m2wkql-build\

C:\Users\Manuel\Desktop>

@micahcochran
Copy link
Collaborator

Visual Studio Community Edition and Python 2.7 most likely won't work together. In Windows, the Python version has to match the Microsoft compiler version used to compile that version of Python. For Python 2.7 is Microsoft Visual C++ 9.0. (I don't think they ever made a version 9.0 [or Visual Studio 2008] Community Edition.)

Try installing this Microsoft Visual C++ Compiler for Python 2.7.

@heitorPB heitorPB mentioned this issue Dec 29, 2018
@snowman2
Copy link
Member

Refer to #216

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants