Skip to content

Install from requirements file (into a virtualenv) fails on Windows #3479

@sffjunkie

Description

@sffjunkie

OS: Windows 7
Python 3.5.1

pip -V
pip 8.0.2 from c:\users\xxx\documents\development\venvs\glossary\lib\site-packages (python 3.5)

Installing from a requirements file generated from pip freeze > requirements.txt produces the following error

pip install -r .\requirements.txt

Traceback (most recent call last):
  File "c:\users\xxx\documents\development\venvs\glossary\lib\site-packages\pip\basecommand.py", line 209, in main
    status = self.run(options, args)
  File "c:\users\xxx\documents\development\venvs\glossary\lib\site-packages\pip\commands\install.py", line 287, in run
    wheel_cache
  File "c:\users\xxx\documents\development\venvs\glossary\lib\site-packages\pip\basecommand.py", line 289, in populate_requirement_set
    wheel_cache=wheel_cache):
  File "c:\users\xxx\documents\development\venvs\glossary\lib\site-packages\pip\req\req_file.py", line 92, in parse_requirements
    for req in req_iter:
  File "c:\users\xxx\documents\development\venvs\glossary\lib\site-packages\pip\req\req_file.py", line 154, in process_line
    isolated=isolated, options=req_options, wheel_cache=wheel_cache
  File "c:\users\xxx\documents\development\venvs\glossary\lib\site-packages\pip\req\req_install.py", line 181, in from_line
    path = os.path.normpath(os.path.abspath(name))
  File "c:\users\xxx\documents\development\venvs\glossary\lib\ntpath.py", line 535, in abspath
    path = _getfullpathname(path)
ValueError: _getfullpathname: embedded null character``

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS: windowsWindows specificauto-lockedOutdated issues that have been locked by automation

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions