So I tried the pip install pyinstaller command and thats what happened:
So I had this bug:
Collecting pyinstaller
Using cached pyinstaller-4.1.tar.gz (3.5 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\aris\onedrive\υπολογιστής\python\python.exe' 'c:\users\aris\onedrive\υπολογιστής\python\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\aris\AppData\Local\Temp\tmp_o2ged7z'
cwd: C:\Users\aris\AppData\Local\Temp\pip-install-ipo7dr00\pyinstaller_7b00b43eae9b4a19be431faa4f4cf9f4
Complete output (38 lines):
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xf5 in position 0: invalid start byte (sitecustomize.py, line 7)
running dist_info
creating C:\Users\aris\AppData\Local\Temp\pip-modern-metadata-tgdlk_61\pyinstaller.egg-info
writing C:\Users\aris\AppData\Local\Temp\pip-modern-metadata-tgdlk_61\pyinstaller.egg-info\PKG-INFO
writing dependency_links to C:\Users\aris\AppData\Local\Temp\pip-modern-metadata-tgdlk_61\pyinstaller.egg-info\dependency_links.txt
writing entry points to C:\Users\aris\AppData\Local\Temp\pip-modern-metadata-tgdlk_61\pyinstaller.egg-info\entry_points.txt
writing requirements to C:\Users\aris\AppData\Local\Temp\pip-modern-metadata-tgdlk_61\pyinstaller.egg-info\requires.txt
writing top-level names to C:\Users\aris\AppData\Local\Temp\pip-modern-metadata-tgdlk_61\pyinstaller.egg-info\top_level.txt
writing manifest file 'C:\Users\aris\AppData\Local\Temp\pip-modern-metadata-tgdlk_61\pyinstaller.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\aris\AppData\Local\Temp\pip-modern-metadata-tgdlk_61\pyinstaller.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'pyinstaller-gui.py'
no previously-included directories found matching 'bootloader\build'
no previously-included directories found matching 'bootloader\.waf-*'
no previously-included directories found matching 'bootloader\.waf3-*'
no previously-included directories found matching 'bootloader\waf-*'
no previously-included directories found matching 'bootloader\waf3-*'
no previously-included directories found matching 'bootloader\_sdks'
no previously-included directories found matching 'bootloader\.vagrant'
warning: no previously-included files found matching 'bootloader\.lock-waf*'
no previously-included directories found matching 'doc\source'
no previously-included directories found matching 'doc\_build'
warning: no previously-included files matching '*.tmp' found under directory 'doc'
warning: no files found matching 'news\_template.rst'
no previously-included directories found matching 'news'
no previously-included directories found matching 'old'
no previously-included directories found matching 'scripts'
no previously-included directories found matching 'tests\scripts'
no previously-included directories found matching '.github'
warning: no previously-included files found matching '.*'
warning: no previously-included files found matching '*.yml'
warning: no previously-included files found matching '*~'
warning: no previously-included files found matching '.directory'
warning: no previously-included files matching '*.py[co]' found anywhere in distribution
writing manifest file 'C:\Users\aris\AppData\Local\Temp\pip-modern-metadata-tgdlk_61\pyinstaller.egg-info\SOURCES.txt'
creating 'C:\Users\aris\AppData\Local\Temp\pip-modern-metadata-tgdlk_61\pyinstaller.dist-info'
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\aris\onedrive\υπολογιστής\python\python.exe' 'c:\users\aris\onedrive\υπολογιστής\python\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\aris\AppData\Local\Temp\tmp_o2ged7z' Check the logs for full command output.
Does anyone know how I can solve it??
The error says:
error: invalid command 'bdist_wheel' ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\users\aris\onedrive\υπολογιστής\python\python.exe'
Try installing wheel first. mostly the error describes itself. try going through them carefully, it will save you lot of debugging time.
Run this command:
pip install wheel
Let me know if the error still exists.
Install the wheel package first. While you're at it, upgrade the whole pip "stack":
python -m pip install -U wheel setuptools pip
Related
When I try to install I get the following error message. What should I do to fix this?problem? Can I get some help? I haven't been in Python for a long time, and I don't really understand what these mean.
command: 'c:\users\appdata\local\programs\python\python37-32\python.exe' 'c:\users\appdata\local\programs\python\python37-32\lib\site-packages\pip_vendor\pep517_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\AppData\Local\Temp\tmp5hj8yy69'
cwd: C:\Users\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller
Complete output (36 lines):
running dist_info
creating C:\Users\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info
writing C:\Users\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\PKG-INFO
writing dependency_links to C:\Users\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\dependency_links.txt
writing entry points to C:\Users\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\entry_points.txt
writing requirements to C:\Users\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\requires.txt
writing top-level names to C:\Users\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\top_level.txt
writing manifest file 'C:\Users\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xb9 in position 0: invalid start byte (sitecustomize.py, line 7)
no previously-included directories found matching 'bootloader\build'
no previously-included directories found matching 'bootloader.waf-'
no previously-included directories found matching 'bootloader.waf3-'
no previously-included directories found matching 'bootloader\waf-'
no previously-included directories found matching 'bootloader\waf3-'
no previously-included directories found matching 'bootloader_sdks'
no previously-included directories found matching 'bootloader.vagrant'
warning: no previously-included files found matching 'bootloader.lock-waf'
no previously-included directories found matching 'doc\source'
no previously-included directories found matching 'doc_build'
warning: no previously-included files matching '.tmp' found under directory 'doc'
warning: no files found matching 'news_template.rst'
no previously-included directories found matching 'news'
no previously-included directories found matching 'old'
no previously-included directories found matching 'scripts'
no previously-included directories found matching 'tests\scripts'
no previously-included directories found matching '.github'
warning: no previously-included files found matching '.'
warning: no previously-included files found matching '.yml'
warning: no previously-included files found matching '*~'
warning: no previously-included files found matching '.directory'
writing manifest file 'C:\Users\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\SOURCES.txt'
creating 'C:\Users\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.dist-info'
error: invalid command 'bdist_wheel'
---------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\appdata\local\programs\python\python37-32\python.exe' 'c:\users\appdata\local\programs\python\python37-32\lib\site-packages\pip_vendor\pep517_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\AppData\Local\Temp\tmp5hj8yy69' Check the logs for full command output.
Preparing wheel metadata ... error
The point is this sentence, a wheel file is missing.
$pip install wheel -i https://pypi.tuna.tsinghua.edu.cn/simple
Maybe try to execute this sentence before executing your previous
I've tried to install cryptography on my brand new Air M1. But something goes wrong.
I already tried some solutions from google but it didn't help.
Environment Details:
Python 3.9.1
pip 21.0.1
macOS BigSur 11.2 Appl1 M1
cffi==1.14.5
openssl#1.1
Steps to reproduce:
pip3 install cryptography
traceback:
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.macosx-11-arm64-3.9/cryptography/hazmat/bindings/openssl
running egg_info
writing src/cryptography.egg-info/PKG-INFO
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing requirements to src/cryptography.egg-info/requires.txt
writing top-level names to src/cryptography.egg-info/top_level.txt
reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files found matching 'vectors'
warning: no previously-included files matching '*' found under directory 'vectors'
warning: no previously-included files matching '*' found under directory '.github'
warning: no previously-included files found matching 'release.py'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'mypy.ini'
warning: no previously-included files matching '*' found under directory '.zuul.d'
warning: no previously-included files matching '*' found under directory '.zuul.playbooks'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
copying src/cryptography/py.typed -> build/lib.macosx-11-arm64-3.9/cryptography
running build_ext
generating cffi module 'build/temp.macosx-11-arm64-3.9/_padding.c'
creating build/temp.macosx-11-arm64-3.9
generating cffi module 'build/temp.macosx-11-arm64-3.9/_openssl.c'
running build_rust
=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following steps to
successfully install cryptography:
1) Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Read https://cryptography.io/en/latest/installation.html for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq.html
4) Ensure you have a recent Rust toolchain installed:
https://cryptography.io/en/latest/installation.html#rust
5) If you are experiencing issues with Rust for *this release only* you may
set the environment variable `CRYPTOGRAPHY_DONT_BUILD_RUST=1`.
=============================DEBUG ASSISTANCE=============================
error: Can not find Rust compiler
----------------------------------------
ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
Rust currently works on m1 via
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
However you will most likely experience another error after fixing rust.
import _cffi_backend as backend
ImportError: dlopen(/private/var/folders/fd/s3rl30nj6790c3p5df6x2_700000gn/T/pip-build-env-w44a7bqz/overlay/lib/python3.x/site-packages/_cffi_backend.cpython-3X-darwin.so, 2): no suitable image found. Did find:
/private/var/folders/fd/s3rl30nj6790c3p5df6x2_700000gn/T/pip-build-env-w44a7bqz/overlay/lib/python3.X/site-packages/_cffi_backend.cpython-3X-darwin.so: mach-o, but wrong architecture
The issue is discussed here where it's stated that CFFI maintainers don't support m1 macs: https://github.com/gevent/gevent/issues/1721
it works for me after fresh updates.
sudo xcode-select --install.
Every single time I try to install something using the pip install command, a whole bunch of errors just hops in, I've had this problem for a while, I've tried searching up solutions and they didnt work. now im here asking for some help :)
This is the red text that shows up when I do the command
ERROR: Command errored out with exit status 1:
command: 'c:\users\kevin løfgren\appdata\local\programs\python\python38-32\python.exe' 'c:\users\kevin løfgren\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\KEVINL~1\AppData\Local\Temp\tmpi743067b'
cwd: C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-install-wli5xph4\pyinstaller_493a92d116a644ecb3d769ba9d19aa63
Complete output (38 lines):
running dist_info
creating C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.egg-info
writing C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.egg-info\PKG-INFO
writing dependency_links to C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.egg-info\dependency_links.txt
writing entry points to C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.egg-info\entry_points.txt
writing requirements to C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.egg-info\requires.txt
writing top-level names to C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.egg-info\top_level.txt
writing manifest file 'C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xf8 in position 0: invalid start byte (sitecustomize.py, line 7)
warning: no files found matching 'pyinstaller-gui.py'
no previously-included directories found matching 'bootloader\build'
no previously-included directories found matching 'bootloader\.waf-*'
no previously-included directories found matching 'bootloader\.waf3-*'
no previously-included directories found matching 'bootloader\waf-*'
no previously-included directories found matching 'bootloader\waf3-*'
no previously-included directories found matching 'bootloader\_sdks'
no previously-included directories found matching 'bootloader\.vagrant'
warning: no previously-included files found matching 'bootloader\.lock-waf*'
no previously-included directories found matching 'doc\source'
no previously-included directories found matching 'doc\_build'
warning: no previously-included files matching '*.tmp' found under directory 'doc'
warning: no files found matching 'news\_template.rst'
no previously-included directories found matching 'news'
no previously-included directories found matching 'old'
no previously-included directories found matching 'scripts'
no previously-included directories found matching 'tests\scripts'
no previously-included directories found matching '.github'
warning: no previously-included files found matching '.*'
warning: no previously-included files found matching '*.yml'
warning: no previously-included files found matching '*~'
warning: no previously-included files found matching '.directory'
warning: no previously-included files matching '*.py[co]' found anywhere in distribution
writing manifest file 'C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.egg-info\SOURCES.txt'
creating 'C:\Users\Kevin Løfgren\AppData\Local\Temp\pip-modern-metadata-tr16djzk\pyinstaller.dist-info'
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\kevin løfgren\appdata\local\programs\python\python38-32\python.exe' 'c:\users\kevin løfgren\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\KEVINL~1\AppData\Local\Temp\tmpi743067b' Check the logs for full command output.
Looks like the wheel package is not detected.
Try installing it with:
pip install wheel
I think that it could be a permission problem. Execute the Windows shell as admin and try again.
this is the error code:
python 3.9
박병욱 = user name
ERROR: Command errored out with exit status 1:
command: 'c:\users\박병욱\appdata\local\programs\python\python39\python.exe' 'c:\users\박병욱\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\박병욱\AppData\Local\Temp\tmph0l3na7d'
cwd: C:\Users\박병욱\AppData\Local\Temp\pip-install-ie4y8nwv\aiohttp
Complete output (24 lines):
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xb9 in position 0: invalid start byte (sitecustomize.py, line 7)
running dist_info
creating C:\Users\박병욱\AppData\Local\Temp\pip-modern-metadata-0k89makp\aiohttp.egg-info
writing C:\Users\박병욱\AppData\Local\Temp\pip-modern-metadata-0k89makp\aiohttp.egg-info\PKG-INFO
writing dependency_links to C:\Users\박병욱\AppData\Local\Temp\pip-modern-metadata-0k89makp\aiohttp.egg-info\dependency_links.txt
writing requirements to C:\Users\박병욱\AppData\Local\Temp\pip-modern-metadata-0k89makp\aiohttp.egg-info\requires.txt
writing top-level names to C:\Users\박병욱\AppData\Local\Temp\pip-modern-metadata-0k89makp\aiohttp.egg-info\top_level.txt
writing manifest file 'C:\Users\박병욱\AppData\Local\Temp\pip-modern-metadata-0k89makp\aiohttp.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\박병욱\AppData\Local\Temp\pip-modern-metadata-0k89makp\aiohttp.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'aiohttp' anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.lib' found anywhere in distribution
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.a' found anywhere in distribution
warning: no previously-included files matching '*.obj' found anywhere in distribution
warning: no previously-included files found matching 'aiohttp\*.html'
no previously-included directories found matching 'docs\_build'
writing manifest file 'C:\Users\박병욱\AppData\Local\Temp\pip-modern-metadata-0k89makp\aiohttp.egg-info\SOURCES.txt'
creating 'C:\Users\박병욱\AppData\Local\Temp\pip-modern-metadata-0k89makp\aiohttp.dist-info'
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\박병욱\appdata\local\programs\python\python39\python.exe' 'c:\users\박병욱\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\박병욱\AppData\Local\Temp\tmph0l3na7d' Check the logs for full command output.
I have tried to solve the problem...
I googled, and go to the file and change something but nothing change..
I am still trying to install Flask on the 'virtual enviroments'. I had some errors trying to get the pip commands when virtualenv activated. (had something to do that my username has a space in the name)
But finally found a solutions, just type the right path to where pip is located, to avoid the username folder.
(venv) C:\Users\Daniel P-C>cd C:\Python34\Scripts
(venv) C:\Python34\Scripts>pip
Usage:
pip <command> [options]
etc...
well when trying to install flask I get the following errors
(venv) C:\Python34\Scripts>pip install flask
Downloading/unpacking flask
Running setup.py (path:C:\Users\DANIEL~1\AppData\Local\Temp\pip_build_Daniel P
-C\flask\setup.py) egg_info for package flask
warning: no files found matching '*' under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory
'docs'
warning: no previously-included files matching '*.pyo' found under directory
'docs'
warning: no previously-included files matching '*.pyc' found under directory
'tests'
warning: no previously-included files matching '*.pyo' found under directory
'tests'
warning: no previously-included files matching '*.pyc' found under directory
'examples'
warning: no previously-included files matching '*.pyo' found under directory
'examples'
no previously-included directories found matching 'docs\_build'
no previously-included directories found matching 'docs\_themes\.git'
Downloading/unpacking Werkzeug>=0.7 (from flask)
Running setup.py (path:C:\Users\DANIEL~1\AppData\Local\Temp\pip_build_Daniel P
-C\Werkzeug\setup.py) egg_info for package Werkzeug
warning: no files found matching '*' under directory 'werkzeug\debug\templat
es'
warning: no files found matching '*' under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory
'docs'
warning: no previously-included files matching '*.pyo' found under directory
'docs'
warning: no previously-included files matching '*.pyc' found under directory
'tests'
warning: no previously-included files matching '*.pyo' found under directory
'tests'
warning: no previously-included files matching '*.pyc' found under directory
'examples'
warning: no previously-included files matching '*.pyo' found under directory
'examples'
no previously-included directories found matching 'docs\_build'
Downloading/unpacking Jinja2>=2.4 (from flask)
Running setup.py (path:C:\Users\DANIEL~1\AppData\Local\Temp\pip_build_Daniel P
-C\Jinja2\setup.py) egg_info for package Jinja2
warning: no files found matching '*' under directory 'custom_fixers'
warning: no previously-included files matching '*' found under directory 'do
cs\_build'
warning: no previously-included files matching '*.pyc' found under directory
'jinja2'
warning: no previously-included files matching '*.pyc' found under directory
'docs'
warning: no previously-included files matching '*.pyo' found under directory
'jinja2'
warning: no previously-included files matching '*.pyo' found under directory
'docs'
Downloading/unpacking itsdangerous>=0.21 (from flask)
Running setup.py (path:C:\Users\DANIEL~1\AppData\Local\Temp\pip_build_Daniel P
-C\itsdangerous\setup.py) egg_info for package itsdangerous
warning: no previously-included files matching '*' found under directory 'do
cs\_build'
Downloading/unpacking markupsafe (from Jinja2>=2.4->flask)
Downloading MarkupSafe-0.23.tar.gz
Running setup.py (path:C:\Users\DANIEL~1\AppData\Local\Temp\pip_build_Daniel P
-C\markupsafe\setup.py) egg_info for package markupsafe
Installing collected packages: flask, Werkzeug, Jinja2, itsdangerous, markupsafe
Running setup.py install for flask
warning: no files found matching '*' under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory
'docs'
warning: no previously-included files matching '*.pyo' found under directory
'docs'
warning: no previously-included files matching '*.pyc' found under directory
'tests'
warning: no previously-included files matching '*.pyo' found under directory
'tests'
warning: no previously-included files matching '*.pyc' found under directory
'examples'
warning: no previously-included files matching '*.pyo' found under directory
'examples'
no previously-included directories found matching 'docs\_build'
no previously-included directories found matching 'docs\_themes\.git'
Running setup.py install for Werkzeug
warning: no files found matching '*' under directory 'werkzeug\debug\templat
es'
warning: no files found matching '*' under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory
'docs'
warning: no previously-included files matching '*.pyo' found under directory
'docs'
warning: no previously-included files matching '*.pyc' found under directory
'tests'
warning: no previously-included files matching '*.pyo' found under directory
'tests'
warning: no previously-included files matching '*.pyc' found under directory
'examples'
warning: no previously-included files matching '*.pyo' found under directory
'examples'
no previously-included directories found matching 'docs\_build'
Running setup.py install for Jinja2
warning: no files found matching '*' under directory 'custom_fixers'
warning: no previously-included files matching '*' found under directory 'do
cs\_build'
warning: no previously-included files matching '*.pyc' found under directory
'jinja2'
warning: no previously-included files matching '*.pyc' found under directory
'docs'
warning: no previously-included files matching '*.pyo' found under directory
'jinja2'
warning: no previously-included files matching '*.pyo' found under directory
'docs'
Running setup.py install for itsdangerous
warning: no previously-included files matching '*' found under directory 'do
cs\_build'
Running setup.py install for markupsafe
building 'markupsafe._speedups' extension
==========================================================================
WARNING: The C extension could not be compiled, speedups are not enabled.
Failure information, if any, is above.
Retrying the build without the C extension now.
==========================================================================
WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python installation succeeded.
==========================================================================
Successfully installed flask Werkzeug Jinja2 itsdangerous markupsafe
Cleaning up...
it says that it has successfully installed flask, but when running python and trying to type import flask it is like it isn't installed? What can I do?
(venv) C:\Python34\Scripts>python
Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import flask
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'flask'
I am btw running on Windows 7
Be sure, you use pip and python from venv
For a module/package to be installed by pip into virtualenv, you must use the pip from virtualenv.
For importing modules/packages being installed into virtualenv environment you have to run python interpreter from given virtualenv.
In case, you run your pip or python from directory C:\Python 34\Scripts, it is very likely, you use system wide pip and install flask into system Python. On Linux you would get problems as installing into system wide python requires root privileges, on MS Windows default Python installation it does not complain.
Advice: Create your virtualenv out of default Python installation directory and use pip and python from this virtulaenv. This is what usually happens, when you activate the virtualenv, so there is no need to explicitly using full path to pip or python (anyway, using explicit path to venv python and pip would not harm anything.
I had exactly the same problem as you, and the answer of Jan didn't work for me.
The problem was simply that I installed virtualenv using apt-get:
$ sudo apt-get install virtualenv
Instead of installing it with pip:
$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
$ sudo python get-pip.py
$ sudo pip install virtualenv
It solved the problem for me. You can even uninstall the apt-get package after:
$ sudo apt-get remove virtualenv
virtualenv is still installed (but the good one!).
Did you add python to your path?
Try this:
Click Start
Search Advanced Systems setting and click
Click on Environmental Variables.
Append ;C:\python27 to the Path variable
Restart the Command Prompt.