question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip does not support spaces in directories names

See original GitHub issue

under 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:closed
  • Created 10 years ago
  • Reactions:6
  • Comments:46 (31 by maintainers)

github_iconTop GitHub Comments

21reactions
AlexeyMKcommented, Mar 18, 2014

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

virtualenv .env
.env/bin/activate
pip install -r requirements.txt

I did

virtualenv .env
.env/bin/activate
python .env/bin/pip install -r requirements.txt

Solved my my problem - still a challenge to call pip outside of the script, but the incision is more narrow.

13reactions
Bilgecommented, Sep 9, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found