Python anaconda conda issue: updating anaconda package impossible because processes are running

筅森魡賤 提交于 2019-12-05 04:09:26

This situation will be improved in the next version of conda, but for now, you can use conda install -f cryptography to force conda to update cryptography.

The reason conda fails to update this packages is because when you call conda install or conda update in the default environment it connects to internet to get latest versions. And to do this conda uses cryptography library from the default environment and therefore it locks this file:

<Anaconda_folder_path>/Lib/site-packages/cryptography-0.8.1-py2.7-win-amd64.egg/cryptography/_Cryptography_cffi_f3e4673fx399b1113.pyd

So to overcome this particular problem you could install the latest cryptography package in offline mode thus avoiding conda locking that file.

If you have tried and failed to update the package - it has already been downloaded and its path should be: <Anaconda_folder_path>/pkgs/cryptography-0.8.2-py27_0.tar.bz2 (If not you might need to manually download it).

Copy this file to any other location and then isntall the package in offline mode:

conda install <path_to_new_location>cryptography-0.8.2-py27_0.tar.bz2

This has fixed the problem for me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!