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
Related
I am using Ubuntu 18.04.
Whenever I try to import pandas in Jupyter Notebook, I get this error.
I have tried several ways to resolve this issue available on internet.
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-7dd3504c366f> in <module>
----> 1 import pandas as pd
ModuleNotFoundError: No module named 'pandas'
I also got error while installing pandas in Jupyter notebook:
Building wheels for collected packages: pandas
Building wheel for pandas (PEP 517) ... error
ERROR: Complete output from command /snap/jupyter/6/bin/python /snap/jupyter/6/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpecqq53bt:
ERROR: running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-37
creating build/lib.linux-x86_64-cpython-37/pandas
copying pandas/_version.py -> build/lib.linux-x86_64-cpython-37/pandas
check.warn(importable)
error: command 'gcc' failed: No such file or directory: 'gcc'
----------------------------------------
ERROR: Failed building wheel for pandas
Running setup.py clean for pandas
Failed to build pandas
ERROR: Could not build wheels for pandas which use PEP 517 and cannot be installed directly
I try to install pandas using ubuntu terminal but got these warnings.
pip3 install pandas
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pandas in ./.local/lib/python3.6/site-packages (1.1.5)
Requirement already satisfied: pytz>=2017.2 in ./.local/lib/python3.6/site-packages (from pandas) (2022.4)
Requirement already satisfied: numpy>=1.15.4 in ./.local/lib/python3.6/site-packages (from pandas) (1.19.3)
Requirement already satisfied: python-dateutil>=2.7.3 in ./.local/lib/python3.6/site-packages (from pandas) (2.8.2)
Requirement already satisfied: six>=1.5 in ./.local/lib/python3.6/site-packages (from python-dateutil>=2.7.3->pandas) (1.16.0)
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
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)```
I was under the impression that --user was only needed when using system python on the mac.
However, when making a venv and trying to plain pip install things, I was running into errors that were of the system privilege type that usually occur when using system pip without --user.
pip install tensorflow --user
Why does this error occur when on a venv? I would think everything should be installed to the venv's bin? It seems --user still fixes it, which I found solved the problem of pip installing it, but something feels wrong.
What is the correct way to dev with python on the mac? I thought venvs were the answer.
pip install librosa --upgrade
Collecting librosa Requirement not upgraded as not directly required: audioread>=2.0.0 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from librosa) (2.1.5) Requirement not upgraded as not directly
required: decorator>=3.0.0 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from librosa) (4.1.2) Requirement not upgraded as not directly
required: six>=1.3 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from librosa) (1.11.0) Requirement not upgraded as not directly
required: scipy>=0.14.0 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from librosa) (0.19.1) Requirement not upgraded as not directly
required: numpy>=1.8.0 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from librosa) (1.13.3) Requirement not upgraded as not directly
required: joblib>=0.7.0 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from librosa) (0.11) Requirement not upgraded as not directly
required: resampy>=0.2.0 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from librosa) (0.2.0) Collecting scikit-learn!=0.19.0,>=0.14.0 (from
librosa) Downloading
https://files.pythonhosted.org/packages/de/d3/47c2c9842d61042f3c5f082f677dbe05899b077272105906a3249fe8c5da/scikit_learn-0.19.1-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (8.0MB)
100% |████████████████████████████████| 8.0MB 2.0MB/s Requirement not upgraded as not directly required: numba>=0.32 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from resampy>=0.2.0->librosa) (0.37.0) Requirement not upgraded as
not directly required: llvmlite>=0.22.0.dev0 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from numba>=0.32->resampy>=0.2.0->librosa) (0.22.0) Requirement not
upgraded as not directly required: enum34 in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from numba>=0.32->resampy>=0.2.0->librosa) (1.1.6)
Requirement not upgraded as not directly required: funcsigs in /Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages (from numba>=0.32->resampy>=0.2.0->librosa) (1.0.2)
Requirement not upgraded as not directly required: singledispatch in
/Users/snow_linux/anaconda/envs/fastai_py27/lib/python2.7/site-packages
(from numba>=0.32->resampy>=0.2.0->librosa) (3.4.0.3)
Installing collected packages: scikit-learn, librosa
Found existing installation: scikit-learn 0.19.0 Cannot uninstall 'scikit-learn'.
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.
I've downloaded twisted from git
git clone -b trunk https://github.com/twisted/twisted.git
as http://twistedmatrix.com/trac/wiki/Downloads suggests.
And then I performed
sudo python setup.py install
But now when I run some python files I get
ImportError: No module named twisted.internet.
I've also noticed, in the README.rst of git, that it doens't mention the module twisted.internet.
So where should I get it?
Don't ever sudo pip install ... anything. Use virtualenv instead.
exarkun#baryon:~$ virtualenv /tmp/virtualenv-demo
Running virtualenv with interpreter /usr/bin/python2
New python executable in /tmp/virtualenv-demo/bin/python2
Also creating executable in /tmp/virtualenv-demo/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
exarkun#baryon:~$ . /tmp/virtualenv-demo/bin/activate
(virtualenv-demo) exarkun#baryon:~$ pip install twisted
Collecting twisted
Collecting constantly>=15.1 (from twisted)
Using cached constantly-15.1.0-py2.py3-none-any.whl
Collecting zope.interface>=3.6.0 (from twisted)
Collecting Automat>=0.3.0 (from twisted)
Using cached Automat-0.5.0-py2.py3-none-any.whl
Collecting incremental>=16.10.1 (from twisted)
Using cached incremental-16.10.1-py2.py3-none-any.whl
Requirement already satisfied: setuptools in /tmp/virtualenv-demo/lib/python2.7/site-packages (from zope.interface>=3.6.0->twisted)
Collecting attrs (from Automat>=0.3.0->twisted)
Using cached attrs-16.3.0-py2.py3-none-any.whl
Requirement already satisfied: six in /tmp/virtualenv-demo/lib/python2.7/site-packages (from Automat>=0.3.0->twisted)
Requirement already satisfied: appdirs>=1.4.0 in /tmp/virtualenv-demo/lib/python2.7/site-packages (from setuptools->zope.interface>=3.6.0->twisted)
Requirement already satisfied: packaging>=16.8 in /tmp/virtualenv-demo/lib/python2.7/site-packages (from setuptools->zope.interface>=3.6.0->twisted)
Requirement already satisfied: pyparsing in /tmp/virtualenv-demo/lib/python2.7/site-packages (from packaging>=16.8->setuptools->zope.interface>=3.6.0->twisted)
Installing collected packages: constantly, zope.interface, attrs, Automat, incremental, twisted
Successfully installed Automat-0.5.0 attrs-16.3.0 constantly-15.1.0 incremental-16.10.1 twisted-17.1.0 zope.interface-4.3.3
(virtualenv-demo) exarkun#baryon:~$ python -c 'import twisted.internet; print twisted.internet'
<module 'twisted.internet' from '/tmp/virtualenv-demo/local/lib/python2.7/site-packages/twisted/internet/__init__.pyc'>
(virtualenv-demo) exarkun#baryon:~$ deactivate
exarkun#baryon:~$