pip

How to use conda/pip install to install packages behind a corporate proxy?

折月煮酒 提交于 2021-01-28 06:53:17
问题 In R I can use install.packages("pkgName") to install a new package no problems. But when I tried python and do pip install package it fails with error Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/pyarrow/ I think it's because pip doesn't know how to automatically detect the proxy (that's gets set in Internet Explorer) like R

Pip install TLS CA issue

邮差的信 提交于 2021-01-28 06:30:48
问题 Every time I try to pip install something, this happens: Lucianos-Mac:test luciano$ pip install torch Collecting torch Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path: /Users/luciano/Applications/NextGIS/Library/Frameworks/openssl.framework/Resources/ssl/certs/cert.pem The path it references was created when I installed the gdal package from nextgis.com, which I later deleted, so the NextGIS directory does not exist.

Uninstalled wrapt module: Python not working

孤街浪徒 提交于 2021-01-28 06:03:55
问题 I was having difficulty installing a package because of a ModuleNotFoundError for wrapt and so I removed and tried to reinstall wrapt. I ran the uninstall once, and wrapt was removed from one location. I tried to install, but the requirement was already satisfied, so I uninstalled wrapt again. See the three commands below: Found existing installation: wrapt 1.12.1 Uninstalling wrapt-1.12.1: Would remove: c:\users\me\appdata\roaming\python\python38\site-packages\wrapt-1.12.1-py3.8.egg-info c:

Uninstalled wrapt module: Python not working

做~自己de王妃 提交于 2021-01-28 06:01:06
问题 I was having difficulty installing a package because of a ModuleNotFoundError for wrapt and so I removed and tried to reinstall wrapt. I ran the uninstall once, and wrapt was removed from one location. I tried to install, but the requirement was already satisfied, so I uninstalled wrapt again. See the three commands below: Found existing installation: wrapt 1.12.1 Uninstalling wrapt-1.12.1: Would remove: c:\users\me\appdata\roaming\python\python38\site-packages\wrapt-1.12.1-py3.8.egg-info c:

Jupyter Notebook - install python 2

百般思念 提交于 2021-01-28 05:07:30
问题 EDITED I'm very new to python and have a probably super basic question. I've installed Jupyter Notebook by installing anaconda which includes python 3 by default. Now I want to use an external toolbox which still works with python 2.7, so I'm trying to get e kernel with python 2.7 as suggested here. In the Anaconda Prompt I'm typing python2 -m pip install ipykernel python2 -m ipykernel install --user But it says that it couldn't find the command "python2". Any idea? 回答1: I had the same issue.

cannot import python modules despite having installed them

自古美人都是妖i 提交于 2021-01-28 05:05:49
问题 I have installed both plotly.express and pandas using: pip install plotly-express and pip install pandas I have tried to import these modules into my program using import pandas as pd import plotly.express as px however, I get a ModuleNotFoundError for both these packages on run. I have tried using alternate installs like: py -3 -m pip install plotly-express python -m pip install plotly-express py -m pip install plotly-express When I try install these packages again, they say that the

cannot import python modules despite having installed them

半世苍凉 提交于 2021-01-28 05:00:15
问题 I have installed both plotly.express and pandas using: pip install plotly-express and pip install pandas I have tried to import these modules into my program using import pandas as pd import plotly.express as px however, I get a ModuleNotFoundError for both these packages on run. I have tried using alternate installs like: py -3 -m pip install plotly-express python -m pip install plotly-express py -m pip install plotly-express When I try install these packages again, they say that the

How do I validate a pip package's PGP key?

为君一笑 提交于 2021-01-28 03:58:48
问题 I'm using the pycryptodomme library. The documentation states All source packages and wheels on PyPI are cryptographically signed. They can be verified with the following PGP key: I installed it via pip pip install pycryptodome I tried just downloading the wheel file directly via pip download pycryptodome There isn't a *.sig or *.asc file. I don't even see it when I inspect the wheel file directly using the suggestion here. Question : How do I check the signature of the wheel file as the

How to init the pyproject.toml file

安稳与你 提交于 2021-01-28 03:30:20
问题 I found that python can use pyproject.toml to list dependencies instead of requirements.txt file. It's more convenient and is very similar to package.json for node.However, I could not find a documentation to init the pyproject.toml file much like the npm init command. How to autogenerate the file with virtualenv or pip? also, is there a way to autoupdate the toml file, as the packagaes get installed, much like npm --save tag, that saves the package to the package.json as its installed? 回答1:

python setup.py egg_info failed with error code 1

∥☆過路亽.° 提交于 2021-01-28 03:11:24
问题 I'm trying to install pystashop module. I have a Python 3.4 installed on Windows 7 64 bits. When I try pip install pystashop I get this error: Collecting pystashop Downloading pystashop-0.4.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 20, in <module> File "C:\Users\Me\AppData\Local\Temp\pip-build-zyt3yyca\pystashop\setup.py", line 12, in <module> execfile(os.path.join('pystashop', 'version.py')) NameError: name