Trying to update pip in a venv enviroment using python 3.7 but an error occur.

191 views
Skip to first unread message

Christian Haugland

unread,
Sep 4, 2018, 9:14:40 AM9/4/18
to Django users
this is the output i get using python 3.7: any idea?

(venv) D:\Code\CompanyVTC\venv\Scripts>python -m pip install --upgrade pip
Collecting pip
Installing collected packages: pip
  Found existing installation: pip 10.0.1
    Uninstalling pip-10.0.1:
      Successfully uninstalled pip-10.0.1
  Rolling back uninstall of pip
Exception:
Traceback (most recent call last):
  File "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_internal\basecommand.py", line 228, in main
    status = self.run(options, args)
  File "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_internal\commands\install.py", line 335, in run
    use_user_site=options.use_user_site,
  File "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_internal\req\__init__.py", line 49, in install_given_reqs
    **kwargs
  File "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_internal\req\req_install.py", line 748, in install
    use_user_site=use_user_site, pycompile=pycompile,
  File "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_internal\req\req_install.py", line 961, in move_wheel_files
    warn_script_location=warn_script_location,
  File "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_internal\wheel.py", line 431, in move_wheel_files
    generated.extend(maker.make(spec))
  File "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_vendor\distlib\scripts.py", line 403, in make
    self._make_script(entry, filenames, options=options)
  File "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_vendor\distlib\scripts.py", line 307, in _make_script
    self._write_script(scriptnames, shebang, script, filenames, ext)
  File "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_vendor\distlib\scripts.py", line 243, in _write_script
    launcher = self._get_launcher('t')
  File "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_vendor\distlib\scripts.py", line 382, in _get_launcher
    result = finder(distlib_package).find(name).bytes
AttributeError: 'NoneType' object has no attribute 'bytes'

(venv) D:\Code\CompanyVTC\venv\Scripts>

RONAK JAIN

unread,
Sep 4, 2018, 9:39:40 AM9/4/18
to django...@googlegroups.com
I am not getting What you want install there ?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/088f0761-28c6-45d5-9ab7-4a2f2ae69220%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bill Kachirsky

unread,
Sep 5, 2018, 12:40:08 PM9/5/18
to Django users
I've run into this problem, I use get-pip.py (https://bootstrap.pypa.io/get-pip.py) to update pip to the latest version when I start a new venv.
Just save that script and run it with 'python get-pip.py' when you have the venv active.
Reply all
Reply to author
Forward
0 new messages