- #Install pip for python 2.7 on windows how to#
- #Install pip for python 2.7 on windows install#
- #Install pip for python 2.7 on windows update#
- #Install pip for python 2.7 on windows windows#
Set these environment variables in the command prompt you just opened. The command prompt should say Visual C++ 2008. Open the Start menu or Start screen, and search for "Visual C++ 2008 32-bit Command Prompt" (if your python is 32-bit) or "Visual C++ 2008 64-bit Command Prompt" (if your python is 64-bit).
Step 2: Open the appropriate Visual C++ 2008 Command Prompt
#Install pip for python 2.7 on windows install#
Step 1: Install the Microsoft Visual C++ Compiler for Python 2.7 However, if you are not using pip, and instead are just doing python setup.py build, the build process will use (), which does not know about the compiler install location. If you use a recent version of pip, it will force (monkeypatch) the package to use setuptools, even if its setup.py calls for distutils. Trying to do python setup.py build rather than using pip. The Microsoft Visual C++ Compiler for Python 2.7 from Īn older package that uses () I ran in to this (in 2015) with a combination of these factors: Look in your setup.py If it is an older package it may be importing () rather than tup(). If for some reason you can't use pip, then try method 2 below. Pip should be able to find your install of the Visual C++ Compiler, and compile the needed extensions. Use pip to install pysqlcipher pip install pysqlcipher
#Install pip for python 2.7 on windows update#
Update setuptools pip install -U setuptools Install the Microsoft Visual C++ Compiler for Python 2.7
#Install pip for python 2.7 on windows how to#
These also complain about not being able to find 'openssl/rand.h'ĭoes anyone have any ideas how to resolve this so I can compile this package for Windows? On27\include -ID:\Developer\Python27\PC -c amalgamation\sqlite3.c -o build\temp.win32-2.7\Release\amalgamation\sqlite3.oĪmalgamation\sqlite3.c:13654:26: fatal error: openssl/rand.h: No such file or directoryĮrror: command 'D:\\Developer\\MinGW\\bin\\gcc.exe' failed with exit status 1 On27\include -ID:\Developer\Python27\PC -c src/row.c -o build\temp.win32-2.7\Release\src\row.o On27\include -ID:\Developer\Python27\PC -c src/util.c -o build\temp.win32-2.7\Release\src\util.o Src/statement.c:408:9: warning: variable 'rc' set but not used Src/statement.c: In function 'pysqlite_statement_dealloc': On27\include -ID:\Developer\Python27\PC -c src/statement.c -o build\temp.win32-2.7\Release\src\statement.o On27\include -ID:\Developer\Python27\PC -c src/prepare_protocol.c -o build\temp.win32-2.7\Release\src\prepare_protocol.o On27\include -ID:\Developer\Python27\PC -c src/microprotocols.c -o build\temp.win32-2.7\Release\src\microprotocols.o On27\include -ID:\Developer\Python27\PC -c src/cache.c -o build\temp.win32-2.7\Release\src\cache.o Src/cursor.c:129:9: warning: variable 'rc' set but not used
Src/cursor.c: In function 'pysqlite_cursor_dealloc':
On27\include -ID:\Developer\Python27\PC -c src/cursor.c -o build\temp.win32-2.7\Release\src\cursor.o Src/connection.c:787:15: warning: variable 'aggregate_class' set but not used Src/connection.c: In function '_pysqlite_final_callback': On27\include -ID:\Developer\Python27\PC -c src/connection.c -o build\temp.win32-2.7\Release\src\connection.o On27\include -ID:\Developer\Python27\PC -c src/module.c -o build\temp.win32-2.7\Release\src\module.o Since after installing VS for Python I still got the same error, I decided to try: setup.py install build -compiler=mingw32ĭ:\Developer\MinGW\bin\gcc.exe -mdll -O -Wall -DMODULE_NAME=\"pysqlcipher.dbapi2\" -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLĮ_RTREE=1 -DSQLITE_ENABLE_LOAD_EXTENSION=1 -DSQLITE_HAS_CODEC=1 -DSQLITE_TEMP_STORE=2 -Iamalgamation -ID:\Developer\Pyth (all of there were run from an elevated command prompt.) I have tried several different ways to install this. All have entries in my %PATH% and I have the environment variables VS90COMNTOOLS and VS100COMNTOOLS pointing to "C:\Users\username\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\bin". I have also installed setuptools and pip for python, MinGW, Visual C++ for Python, and OpenSSL over the course of my trials.
#Install pip for python 2.7 on windows windows#
I have recently installed Python 2.7 on Windows 7.