Я использую Ubuntu 16.04 и у меня есть некоторый код Python, который использует функции из Python 3.6.Мне удалось установить некоторые библиотеки (scipy) с python3.6 и pip3.6.Однако было несколько библиотек (pycurl), для которых не работает установка pip:
$sudo python3.6 -m pip install pycurl
Requirement already satisfied: pycurl in /usr/lib/python3/dist-packages (7.43.0)
Это не позволяет мне импортировать pycurl в моей среде python3.6.И если я вместо этого использую обновление, я получаю сообщение об ошибке, что pycurl является установленным пакетом distutils.
Как я могу получить доступ к pycurl для моей установки python3.6?
$ sudo python3.6 -m pip install --upgrade pycurl
The directory '/home/riaps/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/riaps/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pycurl
Downloading https://files.pythonhosted.org/packages/77/d9/d272b38e6e25d2686e22f6058820298dadead69340b1c57ff84c87ef81f0/pycurl-7.43.0.1.tar.gz (195kB)
100% |████████████████████████████████| 204kB 2.8MB/s
Installing collected packages: pycurl
Found existing installation: pycurl 7.43.0
Cannot uninstall 'pycurl'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.