I'm trying to install sqlite3 on Debian 9 using virtualenv and python3.
I'm getting the Error message below:
Could not find a version that satisfies the requirement sqlite3 (from versions: ) No matching distribution found for sqlite3
The "pip list" command returned the following packages
pip list
astroid 2.2.0
colorama 0.4.1
coremltools 2.1.0
isort 4.3.9
lazy-object-proxy 1.3.1
mccabe 0.6.1
numpy 1.16.2
pandas 0.24.1
pathlib 1.0.1
pip 19.0.3
pkg-resources 0.0.0
prettytable 0.7.2
protobuf 3.6.1
pylint 2.3.0
python-dateutil 2.8.0
pytz 2018.9
setuptools 40.8.0
six 1.12.0
typed-ast 1.2.0
wheel 0.33.1
wrapt 1.11.1
System configuration and software version:
Python -V: Python 3.5.3
virtualenv --version: 15.1.0
lsb_release -a:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.8 (stretch)
Release: 9.8
Codename: stretch
I already did some research on this issue but without success.
I will appreciate any help.
sqlite3 is a module from standard library, you don't need to install it separately.
Related
I am trying to install molgrid library. According to github and pypi pages
Pip installation like below.
pip install molgrid
I'm using Visual Studio Code. When I type pip install molgrid I am getting the following error
ERROR: Could not find a version that satisfies the requirement molgrid
(from versions: none) ERROR: No matching distribution found for
molgrid
Right now, my env's libraries list:
python -m pip list
Package Version
------------------ ---------
atomicwrites 1.4.1
attrs 22.1.0
biopython 1.79
certifi 2022.6.15
charset-normalizer 2.1.0
colorama 0.4.5
condacolab 0.1.3
idna 3.3
imageio 2.21.0
importlib-metadata 4.12.0
iniconfig 1.1.1
joblib 1.1.0
networkx 2.6.3
numpy 1.21.6
packaging 21.3
Pillow 9.2.0
pip 22.2.1
pluggy 1.0.0
py 1.11.0
pyparsing 3.0.9
pyquaternion 0.9.9
pytest 7.1.2
PyWavelets 1.3.0
requests 2.28.1
scikit-image 0.19.3
scikit-learn 1.0.2
scipy 1.7.3
setuptools 40.6.2
threadpoolctl 3.1.0
tifffile 2021.11.2
tomli 2.0.1
torch 1.12.0
torchaudio 0.12.0
torchvision 0.13.0
typing_extensions 4.3.0
urllib3 1.26.11
zipp 3.8.1
Question: How can I install molgrid lib in Visual Studio Code.
Note1: Installation works fine in Google Colab
Note2: There is a similar question Here but those answers are related to Linux, I couldn't find the any Visual Studio Code IDE related answer.
For this package, we can find the .whl file in PyPi.
molgrid-0.5.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
From it's file name, we can know that it only provides the installation package of Linux system, so please use Linux instead of Windows.
I'm taking over a complex project. 5 engineers worked on this for years, but they have all left, and I'm trying to figure it out on my own.
I know they had this app previously running on Centos8, but Centos8 hit EOL in December, so I set up a new EC2 instance running Redhat8.
To get past some permission issues with various software, I'm running as root.
There was an install script that seemed to install a lot of software. If I do:
pip3 list
then I see:
Package Version
-------------------- -----------
argcomplete 2.0.0
Babel 2.5.1
blueflow 2.7.3
certifi 2021.10.8
cffi 1.11.5
chardet 3.0.4
click 8.0.4
cloud-init 21.1
clufter 0.77.1
configobj 5.0.6
cryptography 3.2.1
dbus-python 1.2.4
decorator 4.2.1
distlib 0.3.4
ethtool 0.14
file-magic 0.3.0
filelock 3.4.1
gpg 1.13.1
html5lib 0.999999999
idna 2.5
importlib-metadata 4.8.3
importlib-resources 5.4.0
iniparse 0.4
Jinja2 2.10.1
jsonpatch 1.21
jsonpointer 1.10
jsonschema 2.6.0
libcomps 0.1.16
lxml 4.2.3
MarkupSafe 0.23
oauthlib 2.1.0
packaging 21.3
pcs 0.10.10
perf 0.1
pexpect 4.3.1
pip 21.3.1
pipenv 2022.1.8
pipx 1.0.0
platformdirs 2.4.0
ply 3.9
prettytable 0.7.2
ptyprocess 0.5.2
pycparser 2.14
pycurl 7.43.0.2
PyGObject 3.28.3
pyinotify 0.9.6
PyJWT 1.6.1
pyOpenSSL 19.0.0
pyparsing 2.1.10
pyserial 3.1.1
PySocks 1.6.8
python-dateutil 2.6.1
python-dmidecode 3.12.2
python-linux-procfs 0.6.3
pytz 2017.2
pyudev 0.21.0
PyYAML 3.12
requests 2.20.0
rpm 4.14.3
schedutils 0.6
selinux 2.9
sepolicy 1.1
setools 4.3.0
setuptools 39.2.0
six 1.11.0
subscription-manager 1.28.21
suds-jurko 0.7.dev0
syspurpose 1.28.21
typing_extensions 4.1.1
urllib3 1.24.2
userpath 1.7.0
virtualenv 20.13.2
virtualenv-clone 0.5.7
webencodings 0.5.1
zipp 3.6.0
Following the README that the previous engineers wrote, I then do:
pipenv shell
Now if I do:
pip3 list
This is all that is installed:
pip 21.3.1
setuptools 59.6.0
wheel 0.37.1
So I run the install script again, a lot seems to get installed, mostly I see "Requirement already satisfied" and then I do this again:
pip3 list
but still:
pip 21.3.1
setuptools 59.6.0
wheel 0.37.1
Somehow the install script doesn't use the same path as pipenv shell.
I see this warning:
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
I've a few questions. Doesn't pipenv shell establish a virtual environment? Is venv something I would need to do in addition to pipenv shell?
Also, even running as root, is there a way I can get all of the Python software to use the same path?
I'm looking for the simplest way to get this software running. This is just for development.
I'm trying to use Azure-storage-blob with Python importing with
from azure.storage.blob import BlobServiceClient, BlobClient, ContainerClient
and installed in my .venv with pip install azure-storage-blob and required in requirements.txt with azure-storage-blob
This is my pip list of the environment
Package Version
------------------------- ---------
adal 1.2.7
azure-common 1.1.28
azure-core 1.21.1
azure-cosmos 4.2.0
azure-functions 1.8.0
azure-mgmt-datalake-nspkg 3.0.1
azure-mgmt-nspkg 3.0.2
azure-mgmt-scheduler 2.0.0
azure-mgmt-search 2.1.0
azure-mgmt-servicebus 0.5.3
azure-mgmt-servicefabric 0.2.0
azure-mgmt-signalr 0.1.1
azure-mgmt-subscription 0.2.0
azure-mgmt-trafficmanager 0.50.0
azure-mgmt-web 0.35.0
azure-nspkg 3.0.2
azure-storage-blob 12.9.0
azure-storage-common 2.1.0
backcall 0.2.0
certifi 2021.10.8
cffi 1.15.0
charset-normalizer 2.0.9
click 8.0.4
colorama 0.4.4
cryptography 36.0.1
cycler 0.11.0
debugpy 1.5.1
decorator 5.1.0
entrypoints 0.3
fonttools 4.28.5
idna 3.3
ipykernel 6.6.0
ipython 7.30.1
isodate 0.6.1
itsdangerous 2.1.0
jedi 0.18.1
Jinja2 3.0.3
jupyter-client 7.1.0
jupyter-core 4.9.1
msrest 0.6.21
msrestazure 0.6.4
nest-asyncio 1.5.4
numpy 1.21.5
oauthlib 3.2.0
packaging 21.3
pandas 1.3.5
parso 0.8.3
pickleshare 0.7.5
Pillow 8.4.0
pip 22.0.3
prompt-toolkit 3.0.24
pycparser 2.21
pydocumentdb 2.3.5
Pygments 2.11.0
PyJWT 2.3.0
pymongo 4.0.1
pyparsing 3.0.6
python-dateutil 2.8.2
python-dotenv 0.19.2
pytz 2021.3
pywin32 303
pyzmq 22.3.0
requests 2.26.0
requests-oauthlib 1.3.1
But im getting Import "azure.storage.blob" could not be resolved
How can I solve this problem??
UPDATE: It just don't work in my .venv and under lib/site-package/azure there is not "storage" folder
Try either of the following ways to resolve Import "azure.storage.blob" could not be resolved error:
1. If you are using visual studio code, try following command to install azure-storage-blob:
conda install -c anaconda azure conda install -c conda-forge azure-storage-blob
2. Uninstall older version of azure-storage-blob’ and reinstall: pip uninstall azureandpip uninstall azure-storage`
Reinstall at the specific path:
cdd .venv
pip install azure-storage –upgrade
References: Unresolved import 'azure.storage.blob' when trying to use Python library azure-storage-blob , How to import Azure BlobService in python? and Install Azure Python api on linux: importError: No module named storage.blob
Thanks to everyone I solved recreating .venv
pip3 list
Package Version
------------------- ------------
apipkg 1.5
apparmor 3.0.3
appdirs 1.4.4
asn1crypto 1.4.0
brotlipy 0.7.0
certifi 2021.5.30
cffi 1.14.6
chardet 4.0.0
cmdln 2.0.0
configobj 5.0.6
createrepo-c 0.17.3
cryptography 3.3.2
cssselect 1.1.0
cupshelpers 1.0
cycler 0.10.0
decorator 5.0.9
idna 3.2
iniconfig 0.0.0
isc 2.0
joblib 1.0.1
kiwisolver 1.3.1
LibAppArmor 3.0.3
lxml 4.6.3
matplotlib 3.4.3
mysqlclient 2.0.3
nftables 0.1
notify2 0.3.1
numpy 1.21.1
opi 2.1.1
ordered-set 3.1.1
packaging 20.9
pandas 1.3.1
Pillow 8.3.1
pip 20.2.4
ply 3.11
psutil 5.8.0
py 1.10.0
pyasn1 0.4.8
pycairo 1.20.1
pycparser 2.20
pycups 2.0.1
pycurl 7.43.0.6
PyGObject 3.40.1
pyOpenSSL 20.0.1
pyparsing 2.4.7
pysmbc 1.0.23
PySocks 1.7.1
python-dateutil 2.8.2
python-linux-procfs 0.6
pytz 2021.1
pyudev 0.22.0
requests 2.25.1
rpm 4.16.1.3
scikit-learn 0.24.2
scipy 1.7.1
setuptools 57.4.0
six 1.16.0
sklearn 0.0
slip 0.6.5
slip.dbus 0.6.5
termcolor 1.1.0
threadpoolctl 2.2.0
torch 1.9.0+cu111
torchaudio 0.9.0
torchvision 0.10.0+cu111
tqdm 4.62.1
typing-extensions 3.10.0.0
urllib3 1.26.6
Above shows my installed modules, but when i go into the project folder, and run the shell script, I get:
Traceback (most recent call last):
File "main.py", line 3, in <module>
import torch
ImportError: No module named torch
Even though in the list above it clearly shows that torch is installed.
Please help. My $PATH is /usr/bin/python:/home/anthony/bin:/usr/local/bin:/usr/bin:/bin:/snap/bin
and my printenv PYTHONPATH is :/usr/bin/python
Let me know if you need any other print outs, I've tried everything, and nothing seems to be working. I am working mainly in pycharm.
It is very likely that pip3 is pointing to a different python instance.
Imagine you had python, python3, python3.6 and python3.8 all installed on your system. Which one would pip3 install packages for? (who knows?)
It is almost always safer to do python3.8 -m pip list/install since you can be sure that python3.8 somefile.py will be using the same files you just saw. (even better, do python3.8 -m venv /path/to/some/virtualenv and then make sure that is activated, then you can be sure pip points to the same python)
I accidentally installed a requirements.txt file without being in a virtual environment.
I am running MacOS version 10.12.6. I have already tried to create a txt doc of all the packages then remove them via these commands.
pip freeze > requirements.txt
pip uninstall -r requirements.txt
However, when I run these commands I get this error:
ERROR: Cannot uninstall 'appnope'. 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.
These are the packages I would like to remove for reference:
Package Version
---------------- ---------
appnope 0.1.0
appscript 1.0.1
boto 2.49.0
certifi 2019.6.16
docutils 0.14
entrypoints 0.3
gmpy2 2.0.8
heapdict 1.0.0
imageio 2.5.0
ipython-genutils 0.2.0
llvmlite 0.29.0
locket 0.2.0
mpmath 1.1.0
ptyprocess 0.6.0
pycosat 0.6.3
pycrypto 2.6.1
pycurl 7.43.0.3
PyYAML 5.1.1
ruamel-yaml 0.15.46
setuptools 41.0.1
terminado 0.8.2
wheel 0.33.4
What would be a viable solution for removing these packages? I have already tried to remove them individually through
pip uninstall [package-name] but I receive the same error for each package.