pip does not support spaces in directories names
See original GitHub issueunder Mac OS X 10.7
tareks:tmp tarek$ mkdir "some space"
tareks:tmp tarek$ cd some\ space/
tareks:some space tarek$ virtualenv --no-site-packages .
The --no-site-packages flag is deprecated; it is now the default behavior.
New python executable in ./bin/python
Installing setuptools............done.
Installing pip...............done.
tareks:some space tarek$ bin/pip install docutils
-bash: bin/pip: "/private/tmp/some: bad interpreter: No such file or directory
Or maybe that’s virtualenv ?
Issue Analytics
- State:
- Created 10 years ago
- Reactions:6
- Comments:46 (31 by maintainers)
Top Results From Across the Web
pip can't run in virtualenv because of space in folder name
This is a known bug. There is no workaround other than removing the blank spaces or replacing the blank spaces with hyphens in...
Read more >Long filenames or paths with spaces require quotation marks
Long filenames or paths with spaces are supported by NTFS in Windows NT. However, these filenames or directory names require quotation marks ...
Read more >I'm getting an error indicating that the file path has a space in ...
It created an error message saying that 2 spaces are not allowed, and so I have to do the installation in some other...
Read more >Why shouldn't spaces be used in filenames on the computer?
Most languages don't allow spaces in variable names, so I just don't think to ... parser eventually - even if you drag a...
Read more >Robot Framework User Guide
Robot Framework is a Python-based, extensible keyword-driven automation ... to the robotframework-users mailing list so there is no need to join both lists....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For folks looking for a simpler solution, I got https://github.com/pypa/pip/issues/923#issuecomment-19655227 to work pretty well, in a simpler mode. I only ever needed to call pip once (during an install script), so instead of saying
I did
Solved my my problem - still a challenge to call pip outside of the script, but the incision is more narrow.
I’m not really into Python and this just confirmed I don’t want to be. It’s taken 4 years to add support for a space, and only to some platforms.