Unable to install pysal due to setup.py egg_info file - python

I was working in colab. I wanted to install pysal module for my project. I got the following error.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
The whole error log is shown below:
Collecting pysal
Downloading https://files.pythonhosted.org/packages/68/04/e9a456867aa2686186f7d1d1fd3c9598ac27a92d08063afa236a1f1fd7e2/pysal-2.2.0.tar.gz (104kB)
|████████████████████████████████| 112kB 2.8MB/s
Collecting libpysal>=4.2.2
Downloading https://files.pythonhosted.org/packages/6f/00/bf40b380e9064222868c93ed51d81dd14b1266b16dd5a54e53aaed12caf2/libpysal-4.2.2.tar.gz (2.4MB)
|████████████████████████████████| 2.4MB 9.0MB/s
Collecting esda>=2.2.1
Downloading https://files.pythonhosted.org/packages/16/f1/c2190bc3a7ef9c83ce0b060b927763352bfc0a55ccea8bb5fcd8975de347/esda-2.2.1.tar.gz (62kB)
|████████████████████████████████| 71kB 8.6MB/s
Collecting giddy>=2.3.0
Downloading https://files.pythonhosted.org/packages/6e/96/c9cac4d3a00dbe682a4031e3775cb7941f35ac9918efc481d4da7a89966d/giddy-2.3.0.tar.gz (57kB)
|████████████████████████████████| 61kB 8.2MB/s
Collecting inequality>=1.0.0
Downloading https://files.pythonhosted.org/packages/74/0f/9ed2d097f29160d0c873f33ffc0b9806c1083e3611acb2143eb66adcf580/inequality-1.0.0.tar.gz
Collecting pointpats>=2.1.0
Downloading https://files.pythonhosted.org/packages/57/29/51bf19dc4452c1429f15335574642bfd5cb672ddbacf8a95c69967ff84b1/pointpats-2.1.0.tar.gz
Collecting segregation>=1.2.0
Downloading https://files.pythonhosted.org/packages/4d/69/288da08dde201dc250d6dadf6a9ad035e1a5d8b3bdc20b71c2874482d488/segregation-1.2.0-py3-none-any.whl (110kB)
|████████████████████████████████| 112kB 24.7MB/s
Collecting spaghetti>=1.4.1
Downloading https://files.pythonhosted.org/packages/b8/52/700971b94b37193cfb86fe804541d7ed78015a72275cfb4c8c499bfe6b2b/spaghetti-1.4.2.post2-py3-none-any.whl (41kB)
|████████████████████████████████| 51kB 7.2MB/s
Collecting mgwr>=2.1.1
Downloading https://files.pythonhosted.org/packages/21/38/978bd3f72f5376866d37b9155ea67fad9f0bace4e274569b9e0a19df6c4d/mgwr-2.1.1-py3-none-any.whl (44kB)
|████████████████████████████████| 51kB 7.4MB/s
Collecting spglm>=1.0.7
Downloading https://files.pythonhosted.org/packages/97/45/5cacaa01f2084162976ab6519a5b13db881363592b400d5c91f1c6abc969/spglm-1.0.7.tar.gz
Collecting spint>=1.0.6
Downloading https://files.pythonhosted.org/packages/68/ed/39822aec1aedd46a2c9eb044e36ab9841f745b3a975074fcce13f58107b9/spint-1.0.6-py3-none-any.whl
Collecting spreg>=1.0.4
Downloading https://files.pythonhosted.org/packages/e9/70/30c5685900505b43444b6c9230eb06f082ea3ec456a5bb7e00e00cef306a/spreg-1.1.1-py3-none-any.whl (264kB)
|████████████████████████████████| 266kB 22.2MB/s
Collecting spvcm>=0.3.0
Downloading https://files.pythonhosted.org/packages/b4/c9/43fb98bc60728b76fceee175119a1ff7e5033ed9012d07570e34a2a19a8f/spvcm-0.3.0.tar.gz (5.7MB)
|████████████████████████████████| 5.7MB 13.3MB/s
Collecting tobler>=0.2.0
Downloading https://files.pythonhosted.org/packages/29/21/5f6228878b985a6518cbad432cd0db6bebbee4934600b63dbca2dbae773b/tobler-0.3.0-py3-none-any.whl
Collecting mapclassify>=2.2.0
Downloading https://files.pythonhosted.org/packages/91/b5/6b54f40901d89f2ce30cf2d8110dd57658db3e95db79baba6706d7588691/mapclassify-2.2.0.tar.gz (47kB)
|████████████████████████████████| 51kB 7.9MB/s
Collecting splot>=1.1.2
Downloading https://files.pythonhosted.org/packages/83/1c/afb3e3eeeda4eef065f0b3249ca74cbcc44af3bc59ddb5a21b5445753955/splot-1.1.3.tar.gz
Requirement already satisfied: urllib3<1.25 in /usr/local/lib/python3.6/dist-packages (from pysal) (1.24.3)
Collecting python-dateutil<=2.8.0
Downloading https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl (226kB)
|████████████████████████████████| 235kB 46.4MB/s
Requirement already satisfied: scipy>=0.11 in /usr/local/lib/python3.6/dist-packages (from libpysal>=4.2.2->pysal) (1.4.1)
Requirement already satisfied: numpy>=1.3 in /usr/local/lib/python3.6/dist-packages (from libpysal>=4.2.2->pysal) (1.18.3)
Requirement already satisfied: pandas in /usr/local/lib/python3.6/dist-packages (from libpysal>=4.2.2->pysal) (1.0.3)
Requirement already satisfied: bs4 in /usr/local/lib/python3.6/dist-packages (from libpysal>=4.2.2->pysal) (0.0.1)
Requirement already satisfied: requests in /usr/local/lib/python3.6/dist-packages (from libpysal>=4.2.2->pysal) (2.21.0)
Requirement already satisfied: jinja2 in /usr/local/lib/python3.6/dist-packages (from libpysal>=4.2.2->pysal) (2.11.2)
Requirement already satisfied: scikit-learn in /usr/local/lib/python3.6/dist-packages (from esda>=2.2.1->pysal) (0.22.2.post1)
Collecting quantecon
Downloading https://files.pythonhosted.org/packages/72/15/7649ba1f5ad5adc78efbda71d5f1dd15f0edf4a0dead41ba048b7d7e5335/quantecon-0.4.7-py3-none-any.whl (229kB)
|████████████████████████████████| 235kB 46.7MB/s
Requirement already satisfied: matplotlib in /usr/local/lib/python3.6/dist-packages (from pointpats>=2.1.0->pysal) (3.2.1)
Requirement already satisfied: geopandas in /usr/local/lib/python3.6/dist-packages (from segregation>=1.2.0->pysal) (0.7.0)
Requirement already satisfied: seaborn in /usr/local/lib/python3.6/dist-packages (from segregation>=1.2.0->pysal) (0.10.0)
Requirement already satisfied: tqdm in /usr/local/lib/python3.6/dist-packages (from segregation>=1.2.0->pysal) (4.38.0)
Collecting watermark
Downloading https://files.pythonhosted.org/packages/60/fe/3ed83b6122e70dce6fe269dfd763103c333f168bf91037add73ea4fe81c2/watermark-2.0.2-py2.py3-none-any.whl
Collecting rtree
Using cached https://files.pythonhosted.org/packages/56/6f/f1e91001d5ad9fa9bed65875152f5a1c7955c5763168cae309546e6e9fda/Rtree-0.9.4.tar.gz
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I even checked the logs, the same was printed. Any help, please.
Colab uses python3 only (for those who are about to suggest pip3 install pysal).

The traceback indicates that the error is not coming from pysal, but from rtree.
The first Google result for "rtree install error" is this github thread which contains this answer, indicating that rtree installation requires libspatialindex.
With that in mind, you can run the following to install pysal in Colab:
!apt install libspatialindex-c4v5
!pip install pysal

Related

Error intsalling tensorflow-gpu on Windows 10 : UnsatisfiableError: The following specifications were found to be incompatible with each other

For installing TensorFlow-gpu on a Windows 10 machine, I followed step-by-step this very detailed post https://medium.com/analytics-vidhya/tensorflow-2-3-0-with-gpu-support-on-windows-10-f975a552ea7c but I got stuck at the step of installing the library tensorflow-gpu (I had previusly uninstalled the already existing tensorflow one). I tried to install it both with conda and pip3 command, but I always get this error
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions
Before reaching this point, when I try to install with conda installa command i get this
(mltrade2GPU) D:\Dropbox\PROJECTS\MLTrading>conda install tensorflow-gpu
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.-
Examining #/win-64::__cuda==11.8=0: 0%| | 0/5 [00:00<?, ?it/s]-failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions
instead with pip3
(mltrade2GPU) D:\Dropbox\PROJECTS\MLTrading>pip3 install tensorflow-gpu
Collecting tensorflow-gpu
Downloading tensorflow_gpu-2.10.1-cp310-cp310-win_amd64.whl (455.9 MB)
---------------------------------------- 455.9/455.9 MB 1.6 MB/s eta 0:00:00
Requirement already satisfied: wrapt>=1.11.0 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorflow-gpu) (1.14.1)
Collecting libclang>=13.0.0
Downloading libclang-14.0.6-py2.py3-none-win_amd64.whl (14.2 MB)
---------------------------------------- 14.2/14.2 MB 3.7 MB/s eta 0:00:00
Collecting gast<=0.4.0,>=0.2.1
Downloading gast-0.4.0-py3-none-any.whl (9.8 kB)
Requirement already satisfied: termcolor>=1.1.0 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorflow-gpu) (2.1.1)
Requirement already satisfied: keras-preprocessing>=1.1.1 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorflow-gpu) (1.1.2)
Collecting tensorflow-io-gcs-filesystem>=0.23.1
Downloading tensorflow_io_gcs_filesystem-0.28.0-cp310-cp310-win_amd64.whl (1.5 MB)
---------------------------------------- 1.5/1.5 MB 3.1 MB/s eta 0:00:00
Requirement already satisfied: astunparse>=1.6.0 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorflow-gpu) (1.6.3)
Requirement already satisfied: h5py>=2.9.0 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorflow-gpu) (3.7.0)
Collecting keras<2.11,>=2.10.0
Downloading keras-2.10.0-py2.py3-none-any.whl (1.7 MB)
---------------------------------------- 1.7/1.7 MB 11.9 MB/s eta 0:00:00
Requirement already satisfied: typing-extensions>=3.6.6 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorflow-gpu) (4.3.0)
Requirement already satisfied: google-pasta>=0.1.1 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorflow-gpu) (0.2.0)
Requirement already satisfied: flatbuffers>=2.0 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorflow-gpu) (2.0)
Requirement already satisfied: numpy>=1.20 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorflow-gpu) (1.21.6)
Collecting tensorboard<2.11,>=2.10
Downloading tensorboard-2.10.1-py3-none-any.whl (5.9 MB)
---------------------------------------- 5.9/5.9 MB 3.9 MB/s eta 0:00:00
Requirement already satisfied: setuptools in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorflow-gpu) (65.5.0)
Requirement already satisfied: six>=1.12.0 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorflow-gpu) (1.16.0)
Requirement already satisfied: packaging in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorflow-gpu) (21.3)
Collecting tensorflow-estimator<2.11,>=2.10.0
Downloading tensorflow_estimator-2.10.0-py2.py3-none-any.whl (438 kB)
---------------------------------------- 438.7/438.7 kB 4.6 MB/s eta 0:00:00
Requirement already satisfied: opt-einsum>=2.3.2 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorflow-gpu) (3.3.0)
Collecting protobuf<3.20,>=3.9.2
Downloading protobuf-3.19.6-cp310-cp310-win_amd64.whl (895 kB)
---------------------------------------- 895.7/895.7 kB 28.6 MB/s eta 0:00:00
Requirement already satisfied: grpcio<2.0,>=1.24.3 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorflow-gpu) (1.42.0)
Requirement already satisfied: absl-py>=1.0.0 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorflow-gpu) (1.3.0)
Requirement already satisfied: wheel<1.0,>=0.23.0 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from astunparse>=1.6.0->tensorflow-gpu) (0.37.1)
Requirement already satisfied: markdown>=2.6.8 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorboard<2.11,>=2.10->tensorflow-gpu) (3.4.1)
Requirement already satisfied: werkzeug>=1.0.1 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorboard<2.11,>=2.10->tensorflow-gpu) (2.2.2)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorboard<2.11,>=2.10->tensorflow-gpu) (0.4.6)
Requirement already satisfied: requests<3,>=2.21.0 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorboard<2.11,>=2.10->tensorflow-gpu) (2.28.1)
Requirement already satisfied: google-auth<3,>=1.6.3 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorboard<2.11,>=2.10->tensorflow-gpu) (2.14.1)
Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorboard<2.11,>=2.10->tensorflow-gpu) (0.6.0)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from tensorboard<2.11,>=2.10->tensorflow-gpu) (1.8.1)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from packaging->tensorflow-gpu) (3.0.9)
Requirement already satisfied: rsa<5,>=3.1.4 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from google-auth<3,>=1.6.3->tensorboard<2.11,>=2.10->tensorflow-gpu) (4.9)
Requirement already satisfied: pyasn1-modules>=0.2.1 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from google-auth<3,>=1.6.3->tensorboard<2.11,>=2.10->tensorflow-gpu) (0.2.7)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from google-auth<3,>=1.6.3->tensorboard<2.11,>=2.10->tensorflow-gpu) (5.2.0)
Requirement already satisfied: requests-oauthlib>=0.7.0 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.11,>=2.10->tensorflow-gpu) (1.3.1)
Requirement already satisfied: charset-normalizer<3,>=2 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from requests<3,>=2.21.0->tensorboard<2.11,>=2.10->tensorflow-gpu) (2.1.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from requests<3,>=2.21.0->tensorboard<2.11,>=2.10->tensorflow-gpu) (1.26.13)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from requests<3,>=2.21.0->tensorboard<2.11,>=2.10->tensorflow-gpu) (2022.9.24)
Requirement already satisfied: idna<4,>=2.5 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from requests<3,>=2.21.0->tensorboard<2.11,>=2.10->tensorflow-gpu) (3.4)
Requirement already satisfied: MarkupSafe>=2.1.1 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from werkzeug>=1.0.1->tensorboard<2.11,>=2.10->tensorflow-gpu) (2.1.1)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard<2.11,>=2.10->tensorflow-gpu) (0.4.8)
Requirement already satisfied: oauthlib>=3.0.0 in c:\users\federico\anaconda3\envs\mltrade2gpu\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.11,>=2.10->tensorflow-gpu) (3.2.2)
Installing collected packages: libclang, keras, tensorflow-io-gcs-filesystem, tensorflow-estimator, protobuf, gast, tensorboard, tensorflow-gpu
Attempting uninstall: keras
Found existing installation: keras 2.9.0
Uninstalling keras-2.9.0:
Successfully uninstalled keras-2.9.0
Attempting uninstall: tensorflow-estimator
Found existing installation: tensorflow-estimator 2.9.0
Uninstalling tensorflow-estimator-2.9.0:
Successfully uninstalled tensorflow-estimator-2.9.0
Attempting uninstall: protobuf
Found existing installation: protobuf 3.20.1
Uninstalling protobuf-3.20.1:
Successfully uninstalled protobuf-3.20.1
Attempting uninstall: gast
Found existing installation: gast 0.5.3
Uninstalling gast-0.5.3:
Successfully uninstalled gast-0.5.3
Attempting uninstall: tensorboard
Found existing installation: tensorboard 2.9.0
Uninstalling tensorboard-2.9.0:
Successfully uninstalled tensorboard-2.9.0
ERROR: Could not install packages due to an OSError: [WinError 5] Accesso negato: 'C:\\Users\\Federico\\anaconda3\\envs\\mltrade2GPU\\Lib\\site-packages\\tensorflow\\compiler\\tf2tensorrt\\_pywrap_py_utils.pyd'
Consider using the `--user` option or check the permissions.
There is a version conflict between the tensorflow-gpu and the current CUDA version you have installed. You need CUDA 11.0 for it to work, but you got CUDA 11.8 installed.
Either install a specific CUDA version OR adapt to a specific tensorflow-gpu package version. According to the PyPI site, version 2.10.1 should be correct: pip install tensorflow-gpu==2.10.1!

unresolved import 'discord.ext.tasks'

let me start of by saying i know little to nothing about visual studio.
here's what i've done so far:
i've updated pip -m pip install --upgrade pip
Collecting pip
Downloading pip-21.2.3-py3-none-any.whl (1.6 MB)
|████████████████████████████████| 1.6 MB 819 kB/s
Installing collected packages: pip
Successfully installed pip-21.2.3
and tried to update discord.py pip install --upgrade discord.py
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: discord.py in c:\users\bruh\appdata\roaming\python\python37\site-packages (1.7.3)
Requirement already satisfied: aiohttp<3.8.0,>=3.6.0 in c:\users\bruh\appdata\roaming\python\python37\site-packages (from discord.py) (3.7.4.post0)
Requirement already satisfied: async-timeout<4.0,>=3.0 in c:\users\bruh\appdata\roaming\python\python37\site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py) (3.0.1)
Requirement already satisfied: typing-extensions>=3.6.5 in c:\users\bruh\appdata\roaming\python\python37\site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py) (3.10.0.0)
Requirement already satisfied: attrs>=17.3.0 in c:\users\bruh\appdata\roaming\python\python37\site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py) (21.2.0)
Requirement already satisfied: yarl<2.0,>=1.0 in c:\users\bruh\appdata\roaming\python\python37\site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py) (1.6.3)
Requirement already satisfied: multidict<7.0,>=4.5 in c:\users\bruh\appdata\roaming\python\python37\site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py) (5.1.0)
Requirement already satisfied: chardet<5.0,>=2.0 in c:\users\bruh\appdata\roaming\python\python37\site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py) (4.0.0)
Requirement already satisfied: idna>=2.0 in c:\users\bruh\appdata\roaming\python\python37\site-packages (from yarl<2.0,>=1.0->aiohttp<3.8.0,>=3.6.0->discord.py) (3.2)
but it still says unresolved import 'discord.ext.tasks'

Unable to install web3. I get an error saying version does not satisfy requirement rusty-rlp

I am trying to install some packages for Python. When installing web3, I get an error saying there is no version that satisfies rusty-rlp. Other packages get installed fine. I am using
pip version: 20.2.3
python version: 3.8.5
OS: Windows 10
IDE: PyCharm Community Edition
Collecting web3
Using cached web3-5.12.1-py3-none-any.whl (467 kB)
Requirement already satisfied: jsonschema<4.0.0,>=3.2.0 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from web3) (3.2.0)
Collecting pypiwin32>=223; platform_system == "Windows"
Using cached pypiwin32-223-py3-none-any.whl (1.7 kB)
Collecting lru-dict<2.0.0,>=1.1.6
Using cached lru-dict-1.1.6.tar.gz (9.4 kB)
Collecting eth-account<0.6.0,>=0.5.3
Using cached eth_account-0.5.3-py3-none-any.whl (94 kB)
Collecting eth-hash[pycryptodome]<1.0.0,>=0.2.0
Using cached eth_hash-0.2.0-py3-none-any.whl (7.2 kB)
Collecting hexbytes<1.0.0,>=0.1.0
Using cached hexbytes-0.2.1-py3-none-any.whl (6.0 kB)
Collecting ipfshttpclient<1,>=0.4.13
Using cached ipfshttpclient-0.6.1-py3-none-any.whl (231 kB)
Collecting eth-utils<2.0.0,>=1.9.5
Using cached eth_utils-1.9.5-py3-none-any.whl (23 kB)
Collecting eth-typing<3.0.0,>=2.0.0
Using cached eth_typing-2.2.2-py3-none-any.whl (6.2 kB)
Requirement already satisfied: requests<3.0.0,>=2.16.0 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from web3) (2.24.0)
Collecting eth-abi<3.0.0,>=2.0.0b6
Using cached eth_abi-2.1.1-py3-none-any.whl (27 kB)
Collecting websockets<9.0.0,>=8.1.0
Using cached websockets-8.1-cp38-cp38-win32.whl (65 kB)
Collecting protobuf<4,>=3.10.0
Using cached protobuf-3.13.0-py2.py3-none-any.whl (438 kB)
Requirement already satisfied: pyrsistent>=0.14.0 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3) (0.17.3)
Requirement already satisfied: six>=1.11.0 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3) (1.15.0)
Requirement already satisfied: attrs>=17.4.0 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3) (20.2.0)
Requirement already satisfied: setuptools in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3) (47.1.0)
Requirement already satisfied: pywin32>=223 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from pypiwin32>=223; platform_system == "Windows"->web3) (228)
Collecting bitarray<1.3.0,>=1.2.1
Using cached bitarray-1.2.2.tar.gz (48 kB)
Collecting eth-rlp<1,>=0.1.2
Using cached eth_rlp-0.2.0-py3-none-any.whl (5.0 kB)
Collecting rlp<=2.0.0.alpha-1,>=1.0.0
Using cached rlp-2.0.0a1-py2.py3-none-any.whl (19 kB)
Collecting eth-keys!=0.3.2,<0.4.0,>=0.2.1
Using cached eth_keys-0.3.3-py3-none-any.whl (20 kB)
Collecting eth-keyfile<0.6.0,>=0.5.0
Using cached eth_keyfile-0.5.1-py3-none-any.whl (8.3 kB)
Collecting pycryptodome<4,>=3.6.6; extra == "pycryptodome"
Using cached pycryptodome-3.9.8-cp38-cp38-win32.whl (14.1 MB)
Collecting multiaddr>=0.0.7
Using cached multiaddr-0.0.9-py2.py3-none-any.whl (16 kB)
Collecting cytoolz<1.0.0,>=0.10.1; implementation_name == "cpython"
Using cached cytoolz-0.11.0.tar.gz (477 kB)
Requirement already satisfied: idna<3,>=2.5 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from requests<3.0.0,>=2.16.0->web3) (2.10)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from requests<3.0.0,>=2.16.0->web3) (1.25.10)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from requests<3.0.0,>=2.16.0->web3) (2020.6.20)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\users\johnson lien\appdata\local\programs\python\python38-32\lib\site-packages (from requests<3.0.0,>=2.16.0->web3) (3.0.4)
Collecting parsimonious<0.9.0,>=0.8.0
Using cached parsimonious-0.8.1.tar.gz (45 kB)
ERROR: Could not find a version that satisfies the requirement rusty-rlp<0.2,>=0.1.15 (from rlp<=2.0.0.alpha-1,>=1.0.0->eth-account<0.6.0,>=0.5.3->web3) (from versions: none)
ERROR: No matching distribution found for rusty-rlp<0.2,>=0.1.15 (from rlp<=2.0.0.alpha-1,>=1.0.0->eth-account<0.6.0,>=0.5.3->web3)
I continue to get this error when trying to install the package on PyCharm.
I had the same issue.
As I was trying to install the rusty-rlp package itself downloading the files from the web, I realized there is no option (wheel or zip file) for 32-bit python installations.
I'm on a 64-bit windows PC but for some reason I had a Python-32bit version running so, I Installed Python38-64bit and ran Pip again and the issue with web3 disappeared.
#viken answer is true! But in my case I had to uninstall Python 3.9 and install Python 3.8.7 to be able to install rusty-rlp.

Installing twine fails because cannot uninstall 'pkginfo'

I need guidance on what I should do in this situation:
C:\Users\Dave\Desktop\2016Coding\testdist>pip install twine
Collecting twine
Using cached https://files.pythonhosted.org/packages/65/ae/9cfdff186dd4812c59bad890435538858f13fe43dbe6923e0fb20f0adfc8/twine-1.11.0-py2.py3-none-any.whl
Requirement already satisfied: requests!=2.15,!=2.16,>=2.5.0 in c:\users\dave\desktop\2016coding\environments\ipython_env\anaconda3\lib\site-packages (from twine) (2.18.4)
Requirement already satisfied: requests-toolbelt>=0.8.0 in c:\users\dave\desktop\2016coding\environments\ipython_env\anaconda3\lib\site-packages (from twine) (0.8.0)
Collecting pkginfo>=1.4.2 (from twine)
Using cached https://files.pythonhosted.org/packages/a3/fe/f32a48d48f40a7209be9825fba2566cab92364787cf37de2e08300dd6ce7/pkginfo-1.4.2-py2.py3-none-any.whl
Requirement already satisfied: tqdm>=4.14 in c:\users\dave\desktop\2016coding\environments\ipython_env\anaconda3\lib\site-packages (from twine) (4.23.1)
Requirement already satisfied: setuptools>=0.7.0 in c:\users\dave\desktop\2016coding\environments\ipython_env\anaconda3\lib\site-packages (from twine) (38.5.1)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\users\dave\desktop\2016coding\environments\ipython_env\anaconda3\lib\site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (1.22)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\dave\desktop\2016coding\environments\ipython_env\anaconda3\lib\site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\dave\desktop\2016coding\environments\ipython_env\anaconda3\lib\site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (2018.1.18)
Requirement already satisfied: idna<2.7,>=2.5 in c:\users\dave\desktop\2016coding\environments\ipython_env\anaconda3\lib\site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine) (2.6)
Installing collected packages: pkginfo, twine
Found existing installation: pkginfo 1.3.2
Cannot uninstall 'pkginfo'. 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 can't find another reference to this issue anywhere on the web.
pip install twine --ignore-installed

How to Install Google APIs Client Library via terminal

I tried to install Google APIs Client Library via terminal and got the following result:
$ sudo pip install google-api-python-client
The directory '/home/masterqiao/.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/masterqiao/.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.
Requirement already satisfied: google-api-python-client in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: httplib2<1dev,>=0.9.2 in /usr/local/lib/python2.7/dist-packages (from google-api-python-client)
Requirement already satisfied: oauth2client<5.0.0dev,>=1.5.0 in /usr/local/lib/python2.7/dist-packages (from google-api-python-client)
Requirement already satisfied: uritemplate<4dev,>=3.0.0 in /usr/local/lib/python2.7/dist-packages (from google-api-python-client)
Requirement already satisfied: six<2dev,>=1.6.1 in /usr/local/lib/python2.7/dist-packages (from google-api-python-client)
Requirement already satisfied: pyasn1>=0.1.7 in /usr/local/lib/python2.7/dist-packages (from oauth2client<5.0.0dev,>=1.5.0->google-api-python-client)
Requirement already satisfied: pyasn1-modules>=0.0.5 in /usr/local/lib/python2.7/dist-packages (from oauth2client<5.0.0dev,>=1.5.0->google-api-python-client)
Requirement already satisfied: rsa>=3.1.4 in /usr/local/lib/python2.7/dist-packages (from oauth2client<5.0.0dev,>=1.5.0->google-api-python-client)
You can do it in 2 ways
Option 1:
varad#adithya-pc /tmp/venv/testPythonStacks $ source bin/activate
(testPythonStacks) varad#adithya-pc /tmp/venv/testPythonStacks $ pip install --upgrade google-api-python-client
Collecting google-api-python-client
Downloading google_api_python_client-1.6.2-py2.py3-none-any.whl (52kB)
100% |████████████████████████████████| 61kB 366kB/s
Requirement already up-to-date: six<2dev,>=1.6.1 in ./lib/python2.7/site-packages (from google-api-python-client)
Collecting uritemplate<4dev,>=3.0.0 (from google-api-python-client)
Downloading uritemplate-3.0.0-py2.py3-none-any.whl
Collecting oauth2client<5.0.0dev,>=1.5.0 (from google-api-python-client)
Downloading oauth2client-4.0.0-py2.py3-none-any.whl (184kB)
100% |████████████████████████████████| 194kB 1.0MB/s
Collecting httplib2<1dev,>=0.9.2 (from google-api-python-client)
Downloading httplib2-0.10.3.tar.gz (204kB)
100% |████████████████████████████████| 204kB 908kB/s
Collecting rsa>=3.1.4 (from oauth2client<5.0.0dev,>=1.5.0->google-api-python-client)
Downloading rsa-3.4.2-py2.py3-none-any.whl (46kB)
100% |████████████████████████████████| 51kB 1.9MB/s
Collecting pyasn1-modules>=0.0.5 (from oauth2client<5.0.0dev,>=1.5.0->google-api-python-client)
Downloading pyasn1_modules-0.0.8-py2.py3-none-any.whl
Collecting pyasn1>=0.1.7 (from oauth2client<5.0.0dev,>=1.5.0->google-api-python-client)
Downloading pyasn1-0.2.3-py2.py3-none-any.whl (53kB)
100% |████████████████████████████████| 61kB 1.7MB/s
Building wheels for collected packages: httplib2
Running setup.py bdist_wheel for httplib2 ... done
Stored in directory: /home/varad/.cache/pip/wheels/ca/ac/5f/749651f7925b231103f5316cacca82a487810c22d30f011c0c
Successfully built httplib2
Installing collected packages: uritemplate, pyasn1, rsa, httplib2, pyasn1-modules, oauth2client, google-api-python-client
Successfully installed google-api-python-client-1.6.2 httplib2-0.10.3 oauth2client-4.0.0 pyasn1-0.2.3 pyasn1-modules-0.0.8 rsa-3.4.2 uritemplate-3.0.0
t
Option 2:
1. wget https://pypi.python.org/packages/e8/04/4bb1672918e4fc6d6a8201bdaf986b9fb4763f2a47b11496186dbbbd40ce/google-api-python-client-1.6.2.tar.gz#md5=5efd35416d57e6571276a52f81d26bc7
2. tar -xvf google-api-python-client-1.6.2.tar.gz
3. cd google-api-python-client-1.6.2
4. python setup.py build
5. sudo python setup.py install
Try this
sudo pip install --upgrade google-api-python-client
You can refer this answer or official documentation

Categories