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.

On Tuesday, September 4, 2018 at 6:14:40 AM UTC-7, Christian Haugland wrote:
>
> 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
>   Using cached 
> https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl
> 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>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/ed130344-ce53-4f77-af31-e9ea8b716ba5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to