After I did pip install excel2img , I am trying to run import excel2img but getting
'ModuleNotFoundError: No module named 'excel2img' .
The python version that I am running is 3.8.5
even tried pip install pypiwin32 based on the error that I received while installing excel2img but of no help
Any help?
More info on error message
Collecting excel2img
Using cached excel2img-1.4.0.tar.gz (24 kB)
Requirement already satisfied: Pillow>=3.3.1 in /Applications/anaconda3/lib/python3.8/site-packages (from excel2img) (8.0.1)
Collecting pypiwin32
Using cached pypiwin32-223-py3-none-any.whl (1.7 kB)
ERROR: Could not find a version that satisfies the requirement pywin32>=223 (from pypiwin32->excel2img) (from versions: none)
ERROR: No matching distribution found for pywin32>=223 (from pypiwin32->excel2img)```
Related
This question already has answers here:
unable to access '/Users/dida/.config/git/attributes': Permission denied
(6 answers)
Closed last year.
When I type "pip install Discord" I get the error
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting discord
Using cached discord-1.7.3-py3-none-any.whl (1.1 kB)
Collecting discord.py>=1.7.3
Using cached discord.py-1.7.3-py3-none-any.whl (786 kB)
Collecting aiohttp<3.8.0,>=3.6.0
Using cached aiohttp-3.7.4.post0.tar.gz (1.1 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting chardet<5.0,>=2.0
Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting async-timeout<4.0,>=3.0
Using cached async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Requirement already satisfied: attrs>=17.3.0 in /opt/homebrew/lib/python3.9/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py>=1.7.3->discord) (21.4.0)
Collecting typing-extensions>=3.6.5
Using cached typing_extensions-4.1.1-py3-none-any.whl (26 kB)
Requirement already satisfied: multidict<7.0,>=4.5 in /opt/homebrew/lib/python3.9/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py>=1.7.3->discord) (6.0.2)
Requirement already satisfied: yarl<2.0,>=1.0 in /opt/homebrew/lib/python3.9/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py>=1.7.3->discord) (1.7.2)
Requirement already satisfied: idna>=2.0 in /opt/homebrew/lib/python3.9/site-packages (from yarl<2.0,>=1.0->aiohttp<3.8.0,>=3.6.0->discord.py>=1.7.3->discord) (3.3)
Building wheels for collected packages: aiohttp
WARNING: Building wheel for aiohttp failed: [Errno 13] Permission denied: '/Users/emmasteuer/Library/Caches/pip/wheels/c4'
Failed to build aiohttp
ERROR: Could not build wheels for aiohttp, which is required to install pyproject.toml-based projects
My python is up to date and so is pip. What does this error message mean?
If you are using Ubuntu or similar debian like. Try again, use "sudo" at first command. Because there is the error message "Permission Denied"
sudo pip install Discord
I am trying to install the package "grammar" whose dependencies include the packages "vineyard" and "Graphviz". I am using Pycharm, and I was able to install Graphviz without any issues.
However, while installing packages "grammar" and "vineyard", I am getting the below error:
C:\<mylib>>pip install grammar
Collecting grammar
Using cached https://files.pythonhosted.org/packages/7f/a3/4e712822d562faea9ec03f9181e53cf9dec0f4bebb1a19fceec6d3f51089/grammar-1.6-py3-none-any.whl
Collecting vineyard (from grammar)
Could not find a version that satisfies the requirement vineyard (from grammar) (from versions: )
No matching distribution found for vineyard (from grammar)
and
ERROR: Could not find a version that satisfies the requirement vineyard (from versions: none)
When i try and install using the below command:
pip install C:/<mylib>/vineyard_io-0.2.7-py3-none-any.whl
i get the below error:
Processing c:<mylib>\vineyard_io-0.2.7-py3-none-any.whl
Collecting oss2
Downloading oss2-2.15.0.tar.gz (226 kB)
|████████████████████████████████| 226 kB 544 kB/s
Collecting pyorc
Downloading pyorc-0.4.0-cp39-cp39-win_amd64.whl (765 kB)
|████████████████████████████████| 765 kB 273 kB/s
Collecting s3fs
Using cached s3fs-2021.8.0-py3-none-any.whl (26 kB)
Collecting pyarrow
Downloading pyarrow-5.0.0-cp39-cp39-win_amd64.whl (14.5 MB)
|████████████████████████████████| 14.5 MB 159 kB/s
Collecting hdfs3
Downloading hdfs3-0.3.1.tar.gz (44 kB)
|████████████████████████████████| 44 kB 409 kB/s
ERROR: Could not find a version that satisfies the requirement vineyard==0.2.7 (from vineyard-io) (from versions: none)
ERROR: No matching distribution found for vineyard==0.2.7
I am using python version 3.9.
I think you should be using pip3 instead of pip, since your python version is 3.x.
pip3 install C:/<mylib>/vineyard_io-0.2.7-py3-none-any.wh
Please, tell me if this has worked for you. I downloaded your wheel and installed the wheel using the same python version as you, but using pip3 instead of pip.
The issue was resolved after downgrading the python version to 3.8 from 3.9.
I was able to install vineyard and then grammar after that without any issues.
pip install C:/<mylib>/vineyard_io-0.2.7-py3-none-any.whl
Here is the command line output that I have got when I tried installing my requirements.txt inside a virtual env. It seems that there is some error with the django-filters version, but not sure what! I am so stuck with this, please help me. Thanks!
Using cached asgiref-3.2.7-py2.py3-none-any.whl (19 kB)
Collecting Babel==2.8.0
Using cached Babel-2.8.0-py2.py3-none-any.whl (8.6 MB)
Collecting dj-database-url==0.5.0
Using cached dj_database_url-0.5.0-py2.py3-none-any.whl (5.5 kB)
Requirement already satisfied: Django==3.0.6 in e:\..\..\venv\lib\site-packages (from -r requirements.txt (line 4)) (3.0.6)
Collecting django-crispy-forms==1.9.0
Using cached django_crispy_forms-1.9.0-py2.py3-none-any.whl (107 kB)
ERROR: Could not find a version that satisfies the requirement django-filters==2.4.0
ERROR: No matching distribution found for django-filters==2.4.0
At this time which version is installed of Django-filters in your project ? If u don't have the version 2.4.0 then u have to uninstall the Django-filters and install django-filters 2.4.0 version
pip install django-filters==2.4.0
When I am installing tensorflow in python 3.8.0 then it shows error. How to downgrade python version without affecting other files.
(base) C:\Users\Akanksha-Lab-PC>pip uninstall python 3.8.4
WARNING: Skipping python as it is not installed.
WARNING: Skipping 3.8.4 as it is not installed.
(base) C:\Users\Akanksha-Lab-PC>pip uninstall python-3.8.4
WARNING: Skipping python-3.8.4 as it is not installed.
(base) C:\Users\Akanksha-Lab-PC>make altinstall python-3.7
'make' is not recognized as an internal or external command,
operable program or batch file.
(base) C:\Users\Akanksha-Lab-PC>pip install python-3.7
ERROR: Could not find a version that satisfies the requirement python-3.7 (from versions: none)
ERROR: No matching distribution found for python-3.7
When I type the command pip show tensorflow it gives me this
(base) C:\Users\Akanksha-Lab-PC>python --version
Python 3.8.5
(base) C:\Users\Akanksha-Lab-PC>pip show tensorflow
WARNING: Package(s) not found: tensorflow
When I am installing tensorflow by using this command:
pip install tensorflow
it gives this error
(base) C:\Users\Akanksha-Lab-PC>pip install tensorflow
Collecting tensorflow
Using cached tensorflow-2.4.1-cp38-cp38-win_amd64.whl (370.7 MB)
Requirement already satisfied: six~=1.15.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow) (1.15.0)
Collecting astunparse~=1.6.3
Using cached astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Requirement already satisfied: protobuf>=3.9.2 in c:\programdata\anaconda3\lib\site-packages (from tensorflow) (3.14.0)
Requirement already satisfied: typing-extensions~=3.7.4 in c:\programdata\anaconda3\lib\site-packages (from tensorflow) (3.7.4.3)
Requirement already satisfied: wheel~=0.35 in c:\programdata\anaconda3\lib\site-packages (from tensorflow) (0.35.1)
Requirement already satisfied: numpy~=1.19.2 in c:\programdata\anaconda3\lib\site-packages (from tensorflow) (1.19.2)
Processing c:\users\akanksha-lab-pc\appdata\local\pip\cache\wheels\a0\16\9c\5473df82468f958445479c59e784896fa24f4a5fc024b0f501\termcolor-1.1.0-py3-none-any.whl
Requirement already satisfied: flatbuffers~=1.12.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow) (1.12)
Collecting absl-py~=0.10
Using cached absl_py-0.11.0-py3-none-any.whl (127 kB)
Requirement already satisfied: h5py~=2.10.0 in c:\programdata\anaconda3\lib\site-packages (from tensorflow) (2.10.0)
Collecting keras-preprocessing~=1.1.2
Using cached Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
Requirement already satisfied: google-pasta~=0.2 in c:\programdata\anaconda3\lib\site-packages (from tensorflow) (0.2.0)
Collecting gast==0.3.3
Using cached gast-0.3.3-py2.py3-none-any.whl (9.7 kB)
Collecting grpcio~=1.32.0
Using cached grpcio-1.32.0-cp38-cp38-win_amd64.whl (2.6 MB)
Collecting tensorflow-estimator<2.5.0,>=2.4.0
Using cached tensorflow_estimator-2.4.0-py2.py3-none-any.whl (462 kB)
Collecting tensorboard~=2.4
Using cached tensorboard-2.4.1-py3-none-any.whl (10.6 MB)
Collecting opt-einsum~=3.3.0
Using cached opt_einsum-3.3.0-py3-none-any.whl (65 kB)
Processing c:\users\akanksha-lab-pc\appdata\local\pip\cache\wheels\5f\fd\9e\b6cf5890494cb8ef0b5eaff72e5d55a70fb56316007d6dfe73\wrapt-1.12.1-py3-none-any.whl
Collecting google-auth-oauthlib<0.5,>=0.4.1
Using cached google_auth_oauthlib-0.4.2-py2.py3-none-any.whl (18 kB)
Requirement already satisfied: setuptools>=41.0.0 in c:\programdata\anaconda3\lib\site-packages (from tensorboard~=2.4->tensorflow) (50.3.1.post20201107)
Collecting markdown>=2.6.8
Using cached Markdown-3.3.3-py3-none-any.whl (96 kB)
Collecting google-auth<2,>=1.6.3
Using cached google_auth-1.24.0-py2.py3-none-any.whl (114 kB)
Collecting tensorboard-plugin-wit>=1.6.0
Using cached tensorboard_plugin_wit-1.8.0-py3-none-any.whl (781 kB)
Requirement already satisfied: requests<3,>=2.21.0 in c:\programdata\anaconda3\lib\site-packages (from tensorboard~=2.4->tensorflow) (2.24.0)
Requirement already satisfied: werkzeug>=0.11.15 in c:\programdata\anaconda3\lib\site-packages (from tensorboard~=2.4->tensorflow) (1.0.1)
Collecting requests-oauthlib>=0.7.0
Using cached requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Collecting pyasn1-modules>=0.2.1
Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting cachetools<5.0,>=2.0.0
Using cached cachetools-4.2.1-py3-none-any.whl (12 kB)
Collecting rsa<5,>=3.1.4; python_version >= "3.6"
Using cached rsa-4.7-py3-none-any.whl (34 kB)
Requirement already satisfied: certifi>=2017.4.17 in c:\programdata\anaconda3\lib\site-packages (from requests<3,>=2.21.0->tensorboard~=2.4->tensorflow) (2020.6.20)
Requirement already satisfied: idna<3,>=2.5 in c:\programdata\anaconda3\lib\site-packages (from requests<3,>=2.21.0->tensorboard~=2.4->tensorflow) (2.10)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\programdata\anaconda3\lib\site-packages (from requests<3,>=2.21.0->tensorboard~=2.4->tensorflow) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\programdata\anaconda3\lib\site-packages (from requests<3,>=2.21.0->tensorboard~=2.4->tensorflow) (1.25.11)
Collecting oauthlib>=3.0.0
Using cached oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
Collecting pyasn1<0.5.0,>=0.4.6
Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Installing collected packages: astunparse, termcolor, absl-py, keras-preprocessing, gast, grpcio, tensorflow-estimator, oauthlib, requests-oauthlib, pyasn1, pyasn1-modules, cachetools, rsa, google-auth, google-auth-oauthlib, markdown, tensorboard-plugin-wit, tensorboard, opt-einsum, wrapt, tensorflow
Attempting uninstall: wrapt
Found existing installation: wrapt 1.11.2
Uninstalling wrapt-1.11.2:
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\programdata\\anaconda3\\lib\\site-packages\\wrapt-1.11.2.dist-info\\INSTALLER'
Consider using the `--user` option or check the permissions.
Can anybody tell me the solution of this?
pip uninstall python 3.8.4
This command will never work. pip is a python package manager, i.e. for an installation of python, pip is responsible to install modules to that python installation. It does not manage the installation of python itself
To your error with the tensorflow installation:
pip install tensorflow
and
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\programdata\\anaconda3\\lib\\site-packages\\wrapt-1.11.2.dist-info\\INSTALLER'
This is caused by the fact that the c:\\programdata is write protected from non-admin users, so in order for your command to succeed, you should run your cmd as admin.
BUT:
It seems like you have installed anaconda and are trying to install tensorflow into the base environment using pip. Pip in turn tries to uninstall some already existing package, probably to fulfill the tensorflow requirements. But the already existing package are probably installed by conda when you first installed anaconda, so you ware getting into dangerous waters here and you are risking to break your base environment, so two suggestions:
Create a new environment conda create -n tf tensorflow-gpu
Use conda commands to install tensorflow. conda install tensorflow-gpu will give you tensorflow
To your other question:
How to downgrade python
The solution is also to use a conda command:
conda install python=<some version>
or, even better, simply create an environment with the version you need:
conda create -n py37 python=3.7
would for example give you an environment called py37 with python3.7 installed. It can be activated and used with
conda activate py37
i was trying to install geoviews using pip but got errors.
C:\Users\jainil>pip install geoviews==1.6.2
Collecting geoviews==1.6.2
Using cached https://files.pythonhosted.org/packages/5d/76/7aa62a5dfdec25ab9f921223bd26507bb603bc5f08a4a7057d3f5e24f42b/geoviews-1.6.2-py2.py3-none-any.whl
Requirement already satisfied: numpy>=1.0 in c:\users\jainil\anaconda3\lib\site-packages (from geoviews==1.6.2) (1.16.4)
Requirement already satisfied: holoviews>=1.11.1 in c:\users\jainil\anaconda3\lib\site-packages (from geoviews==1.6.2) (1.12.3)
Requirement already satisfied: bokeh>=1.0.0 in c:\users\jainil\anaconda3\lib\site-packages (from geoviews==1.6.2) (1.2.0)
Collecting cartopy>=0.16.0 (from geoviews==1.6.2)
Using cached https://files.pythonhosted.org/packages/e5/92/fe8838fa8158931906dfc4f16c5c1436b3dd2daf83592645b179581403ad/Cartopy-0.17.0.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Complete output from command 'C:\Users\jainil\Anaconda3\python.exe' 'C:\Users\jainil\Anaconda3\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\jainil\AppData\Local\Temp\tmp25d9ovmd':
ERROR: setup.py:171: UserWarning: Unable to determine GEOS version. Ensure you have 3.3.3 or later installed, or installation may fail.
'.'.join(str(v) for v in GEOS_MIN_VERSION), ))
Proj 4.9.0 must be installed.
----------------------------------------
ERROR: Command "'C:\Users\jainil\Anaconda3\python.exe' 'C:\Users\jainil\Anaconda3\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\jainil\AppData\Local\Temp\tmp25d9ovmd'" failed with error code 1 in C:\Users\jainil\AppData\Local\Temp\pip-install-sjcurctz\cartopy
ok it is solved.
solved by conda install -c scitools cartopy