Python 3.5

Fermé
JoeJoe743 Messages postés 1 Date d'inscription lundi 15 août 2016 Statut Membre Dernière intervention 15 août 2016 - 15 août 2016 à 15:54
dsy73 Messages postés 9252 Date d'inscription dimanche 22 août 2010 Statut Contributeur Dernière intervention 23 octobre 2020 - 28 août 2016 à 05:04
Bonjour,

J'ai un soucis lorsque je fais : pip3 install -r requirements/dev.txt

Merci d'avance pour votre aide


C:\wamp64\www\Test\branches\flat>pip3 install -r requirements/prod.txt
Collecting setuptools==18.5 (from -r requirements/prod.txt (line 3))
Using cached setuptools-18.5-py2.py3-none-any.whl
Collecting wheel==0.26.0 (from -r requirements/prod.txt (line 4))
Using cached wheel-0.26.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): Flask==0.10.1 in c:\users\joejoe\appdata\local\programs\python\python35-32\lib\site-packages (from -r requirements/prod.txt (line 7))
Requirement already satisfied (use --upgrade to upgrade): MarkupSafe==0.23 in c:\users\joejoe\appdata\local\programs\python\python35-32\lib\site-packages (from -r requirements/prod.txt (line 8))
Requirement already satisfied (use --upgrade to upgrade): Werkzeug==0.10.4 in c:\users\joejoe\appdata\local\programs\python\python35-32\lib\site-packages (from -r requirements/prod.txt (line 9))
Requirement already satisfied (use --upgrade to upgrade): Jinja2==2.8 in c:\users\joejoe\appdata\local\programs\python\python35-32\lib\site-packages (from -r requirements/prod.txt (line 10))
Requirement already satisfied (use --upgrade to upgrade): itsdangerous==0.24 in c:\users\joejoe\appdata\local\programs\python\python35-32\lib\site-packages (from -r requirements/prod.txt (line 11))
Requirement already satisfied (use --upgrade to upgrade): Flask-SQLAlchemy==2.1 in c:\users\joejoe\appdata\local\programs\python\python35-32\lib\site-packages (from -r requirements/prod.txt (line 14))
Requirement already satisfied (use --upgrade to upgrade): SQLAlchemy==1.0.9 in c:\users\joejoe\appdata\local\programs\python\python35-32\lib\site-packages (from -r requirements/prod.txt (line 15))
Collecting psycopg2==2.6.1 (from -r requirements/prod.txt (line 16))
Using cached psycopg2-2.6.1.tar.gz
Collecting Flask-Migrate==1.6.0 (from -r requirements/prod.txt (line 19))
Collecting Flask-WTF==0.12 (from -r requirements/prod.txt (line 22))
Collecting WTForms==2.0.2 (from -r requirements/prod.txt (line 23))
Using cached WTForms-2.0.2-py2.py3-none-any.whl
Collecting gunicorn>=19.1.1 (from -r requirements/prod.txt (line 26))
Using cached gunicorn-19.6.0-py2.py3-none-any.whl
Collecting Flask-Assets==0.11 (from -r requirements/prod.txt (line 29))
Collecting cssmin>=0.2.0 (from -r requirements/prod.txt (line 30))
Collecting jsmin>=2.0.11 (from -r requirements/prod.txt (line 31))
Collecting Flask-Login==0.3.2 (from -r requirements/prod.txt (line 34))
Collecting Flask-Bcrypt==0.7.1 (from -r requirements/prod.txt (line 35))
Collecting Flask-Cache>=0.13.1 (from -r requirements/prod.txt (line 38))
Collecting Flask-DebugToolbar==0.10.0 (from -r requirements/prod.txt (line 41))
Collecting autobahn==0.9.4 (from -r requirements/prod.txt (line 44))
Collecting twisted==15.5.0 (from -r requirements/prod.txt (line 45))
Collecting Flask-Script>=0.6 (from Flask-Migrate==1.6.0->-r requirements/prod.txt (line 19))
Collecting alembic>=0.6 (from Flask-Migrate==1.6.0->-r requirements/prod.txt (line 19))
Collecting webassets>=0.11 (from Flask-Assets==0.11->-r requirements/prod.txt (line 29))
Collecting bcrypt (from Flask-Bcrypt==0.7.1->-r requirements/prod.txt (line 35))
Using cached bcrypt-3.1.0-cp35-cp35m-win32.whl
Collecting Blinker (from Flask-DebugToolbar==0.10.0->-r requirements/prod.txt (line 41))
Requirement already satisfied (use --upgrade to upgrade): six>=1.6.1 in c:\users\joejoe\appdata\local\programs\python\python35-32\lib\site-packages (from autobahn==0.9.4->-r requirements/prod.txt (line 44))
Collecting zope.interface>=4.0.2 (from twisted==15.5.0->-r requirements/prod.txt (line 45))
Using cached zope.interface-4.2.0-cp35-cp35m-win32.whl
Collecting Mako (from alembic>=0.6->Flask-Migrate==1.6.0->-r requirements/prod.txt (line 19))
Collecting python-editor>=0.3 (from alembic>=0.6->Flask-Migrate==1.6.0->-r requirements/prod.txt (line 19))
Collecting cffi>=1.1 (from bcrypt->Flask-Bcrypt==0.7.1->-r requirements/prod.txt (line 35))
Using cached cffi-1.7.0-cp35-none-win32.whl
Collecting pycparser (from cffi>=1.1->bcrypt->Flask-Bcrypt==0.7.1->-r requirements/prod.txt (line 35))
Building wheels for collected packages: psycopg2
Running setup.py bdist_wheel for psycopg2 ... error
Complete output from command c:\users\joejoe\appdata\local\programs\python\python35-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\joejoe\\AppData\\Local\\Temp\\pip-build-64xst0o5\\psycopg2\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d C:\Users\joejoe\AppData\Local\Temp\tmp0t4foeoypip-wheel- --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.5
creating build\lib.win32-3.5\psycopg2
copying lib\errorcodes.py -> build\lib.win32-3.5\psycopg2
copying lib\extensions.py -> build\lib.win32-3.5\psycopg2
copying lib\extras.py -> build\lib.win32-3.5\psycopg2
copying lib\pool.py -> build\lib.win32-3.5\psycopg2
copying lib\psycopg1.py -> build\lib.win32-3.5\psycopg2
copying lib\tz.py -> build\lib.win32-3.5\psycopg2
copying lib\_json.py -> build\lib.win32-3.5\psycopg2
copying lib\_range.py -> build\lib.win32-3.5\psycopg2
copying lib\__init__.py -> build\lib.win32-3.5\psycopg2
creating build\lib.win32-3.5\psycopg2\tests
copying tests\dbapi20.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\dbapi20_tpc.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\testconfig.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\testutils.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_async.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_bugX000.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_bug_gc.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_cancel.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_connection.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_copy.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_cursor.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_dates.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_extras_dictcursor.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_green.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_lobject.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_module.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_notify.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_psycopg2_dbapi20.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_quote.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_transaction.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_types_basic.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_types_extras.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_with.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\__init__.py -> build\lib.win32-3.5\psycopg2\tests
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
running build_ext
building 'psycopg2._psycopg' extension
creating build\temp.win32-3.5
creating build\temp.win32-3.5\Release
creating build\temp.win32-3.5\Release\psycopg
cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPSYCOPG_DEFAULT_PYDATETIME=1 "-DPSYCOPG_VERSION=\"2.6.1 (dt dec pq3 ext)\"" -DPG_VERSION_HEX=0x090504 -Ic:\users\joejoe\appdata\local\programs\python\python35-32\include -Ic:\users\joejoe\appdata\local\programs\python\python35-32\include -I. -IC:/PROGRA~1/PostgreSQL/9.5/include -IC:/PROGRA~1/PostgreSQL/9.5/include/server /Tcpsycopg\psycopgmodule.c /Fobuild\temp.win32-3.5\Release\psycopg\psycopgmodule.obj
error: command 'cl.exe' failed: No such file or directory

----------------------------------------
Failed building wheel for psycopg2
Running setup.py clean for psycopg2
Failed to build psycopg2
Installing collected packages: setuptools, wheel, psycopg2, Flask-Script, Mako, python-editor, alembic, Flask-Migrate, WTForms, Flask-WTF, gunicorn, webassets, Flask-Assets, cssmin, jsmin, Flask-Login, pycparser, cffi, bcrypt, Flask-Bcrypt, Flask-Cache, Blinker, Flask-DebugToolbar, autobahn, zope.interface, twisted
Found existing installation: setuptools 25.2.0
Uninstalling setuptools-25.2.0:
Successfully uninstalled setuptools-25.2.0
Found existing installation: wheel 0.29.0
Uninstalling wheel-0.29.0:
Successfully uninstalled wheel-0.29.0
Found existing installation: psycopg2 2.6.2
Uninstalling psycopg2-2.6.2:
Successfully uninstalled psycopg2-2.6.2
Running setup.py install for psycopg2 ... error
Complete output from command c:\users\joejoe\appdata\local\programs\python\python35-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\joejoe\\AppData\\Local\\Temp\\pip-build-64xst0o5\\psycopg2\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\joejoe\AppData\Local\Temp\pip-c691_66q-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-3.5
creating build\lib.win32-3.5\psycopg2
copying lib\errorcodes.py -> build\lib.win32-3.5\psycopg2
copying lib\extensions.py -> build\lib.win32-3.5\psycopg2
copying lib\extras.py -> build\lib.win32-3.5\psycopg2
copying lib\pool.py -> build\lib.win32-3.5\psycopg2
copying lib\psycopg1.py -> build\lib.win32-3.5\psycopg2
copying lib\tz.py -> build\lib.win32-3.5\psycopg2
copying lib\_json.py -> build\lib.win32-3.5\psycopg2
copying lib\_range.py -> build\lib.win32-3.5\psycopg2
copying lib\__init__.py -> build\lib.win32-3.5\psycopg2
creating build\lib.win32-3.5\psycopg2\tests
copying tests\dbapi20.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\dbapi20_tpc.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\testconfig.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\testutils.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_async.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_bugX000.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_bug_gc.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_cancel.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_connection.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_copy.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_cursor.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_dates.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_extras_dictcursor.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_green.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_lobject.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_module.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_notify.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_psycopg2_dbapi20.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_quote.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_transaction.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_types_basic.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_types_extras.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\test_with.py -> build\lib.win32-3.5\psycopg2\tests
copying tests\__init__.py -> build\lib.win32-3.5\psycopg2\tests
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
running build_ext
building 'psycopg2._psycopg' extension
creating build\temp.win32-3.5
creating build\temp.win32-3.5\Release
creating build\temp.win32-3.5\Release\psycopg
cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPSYCOPG_DEFAULT_PYDATETIME=1 "-DPSYCOPG_VERSION=\"2.6.1 (dt dec pq3 ext)\"" -DPG_VERSION_HEX=0x090504 -Ic:\users\joejoe\appdata\local\programs\python\python35-32\include -Ic:\users\joejoe\appdata\local\programs\python\python35-32\include -I. -IC:/PROGRA~1/PostgreSQL/9.5/include -IC:/PROGRA~1/PostgreSQL/9.5/include/server /Tcpsycopg\psycopgmodule.c /Fobuild\temp.win32-3.5\Release\psycopg\psycopgmodule.obj
error: command 'cl.exe' failed: No such file or directory

----------------------------------------
Rolling back uninstall of psycopg2
Command "c:\users\joejoe\appdata\local\programs\python\python35-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\joejoe\\AppData\\Local\\Temp\\pip-build-64xst0o5\\psycopg2\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\joejoe\AppData\Local\Temp\pip-c691_66q-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Rayhan\AppData\Local\Temp\pip-ng8rsyj4-build\C:\Users\joejoe\AppData\Local\Temp\pip-build-64xst0o5\psycopg2\

1 réponse

dsy73 Messages postés 9252 Date d'inscription dimanche 22 août 2010 Statut Contributeur Dernière intervention 23 octobre 2020 2 482
28 août 2016 à 05:04
Salut
la compilation sous Windows est compliquée. Tu devrais passer à Linux ou utiliser un environnement Python complet. Explique ton objectif final si tu veux des détails.

Une piste pour ton message d'erreur : https://stackoverflow.com/questions/32740319/error-command-cl-exe-failed-no-such-file-or-directory-python-3-4
0