Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create Environment Python-3.5 Errors

I just installed Anaconda (that installs Python 3.6) within Windows 10...and it worked fine. I then tried to create a Python 3.5 environment:

% conda create -n py35 python=3.5 anaconda

But the process fails on verification. I've tried twice...and the verification lists 702 errors as below... Here are the top three (I've substituted 'UserName' for my user name):

CondaVerificationError: The package for pyqt located at C:\Users\

<UserName>\AppData\Local\Continuum\anaconda3\pkgs\pyqt-5.6.0-py35hd46907b_5
appears to be corrupted. The path 'Lib/site-packages/PyQt5/Enginio.pyd'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pyqt located at C:\Users\<UserName>\AppData\Local\Continuum\anaconda3\pkgs\pyqt-5.6.0-py35hd46907b_5
appears to be corrupted. The path 'Lib/site-packages/PyQt5/Enginio.pyi'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pyqt located at C:\Users\<UserName>\AppData\Local\Continuum\anaconda3\pkgs\pyqt-5.6.0-py35hd46907b_5
appears to be corrupted. The path 'Lib/site-packages/PyQt5/QAxContainer.pyd'
specified in the package manifest cannot be found.

This should be straightforward: install an environment, within Windows 10... Yet it fails... is there a step I've missed? path variable unset?

like image 382
jrdunson Avatar asked Jan 23 '18 14:01

jrdunson


People also ask

How do I use Python 3.7 in VENV?

Show activity on this post. You will see something like this: Running virtualenv with interpreter C:\Python37\python.exe Using base prefix 'C:\Python37' New python executable in C:\Users\XXXX\Documents\GitHub\MyProject\venv\Scripts\python.exe Installing setuptools, pip, wheel... done.

Is Python VENV deprecated?

Deprecated since version 3.6: pyvenv was the recommended tool for creating virtual environments for Python 3.3 and 3.4, and is deprecated in Python 3.6. Changed in version 3.5: The use of venv is now recommended for creating virtual environments.


2 Answers

Just another alternative to the previous answer:

conda clean --all

This removes index caches, lock files, unused cache packages, and tarballs.

like image 191
Madhavan Seshadri Avatar answered Oct 04 '22 15:10

Madhavan Seshadri


have same issue. And helped with this link. conda clean --packages --tarballs

like image 38
YanchenCore Avatar answered Oct 04 '22 17:10

YanchenCore