stillcon.blogg.se

Conda install package for a python version
Conda install package for a python version













conda install package for a python version
  1. Conda install package for a python version Patch#
  2. Conda install package for a python version windows#

Using Windows SDK C/C++ compiler (works for all Python versions) Then, create a file distutils.cfg \\ E:\Anaconda2\Lib\distutils\ in the same folder, and put this inside:

conda install package for a python version

Vcpath = os.path.join(os.environ, 'Programs', 'Common', 'Microsoft', 'Visual C++ for Python', '9.0', 'vcvarsall.bat') 'Visual C++ for Python', '9.0', 'vcvarsall.bat') Vcpath = os.path.join(vcpath, 'Common Files', 'Microsoft', That fails it falls back to the VS90COMNTOOLS env var.

Conda install package for a python version Patch#

Python.exe setup.py build_ext -inplace -compiler=msvcĪnother way to workaround this issue, without needing to set variables everytime, is to patch the fileĮ:\Anaconda2\Lib\distutils\msvc9compiler.pyīy adding the following code at the top of theĪt first it tries to find the productdir of VS 2008 in the registry. You can then "cd X:yourpath"\\"cd C:\Downloads\winrandom-1.2" to navigate to your Python app and then build your C extensions by entering: (go to start menu > Microsoft Visual C++ Compiler Package for Python 2.7 > Visual C++ 2008 32-bit Command Prompt)Ĭmd.exe /k ""C:\Users\%username%\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\vcvarsall.bat" x86" Launch MSVC for Python command prompt \\vcvarsall.bat Window opened with "run as administrator", like this: Install Microsoft Visual C++ Compiler for Python from Using Microsoft Visual C++ Compiler for Python (only for PythonĢ.7.x)\\ VCForPython27.msi \\ vcvarsall.bat in folders with a different path layout than the VS2008 SDK Package for Python 2.7 \\ Visual C++ 2008 \\įor Python 2.7 you need to get Microsoft Visual C++ Compiler for Python 2.7 Microsoft Visual C++ 9.0 with Visual Studio 2008 (x86, 圆4, ia64)

conda install package for a python version

Microsoft Visual C++ 9.0 standalone: Windows SDK 6.1 (x86, 圆4, ia64) Microsoft Visual C++ 9.0 standalone: Windows SDK 7.0 (x86, 圆4, ia64) Microsoft Visual C++ 9.0 standalone: Visual C++ Compiler for Python 2.7 (x86, 圆4) Microsoft Visual C++ 10.0 with Visual Studio 2010 (x86, 圆4, ia64) Microsoft Visual C++ 10.0 standalone: Windows SDK 7.1 (x86, 圆4, ia64) Which Microsoft Visual C++ compiler to use with a specific Python version















Conda install package for a python version