How to Install Google APIs Client Library via terminal - python

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

Related

Problem with installing matplotlib library in pycharm

when i run
pip install matplotlib
or
pip3 install matplotlib
I get this error which i really don't understand.
this has never happened before.
PS D:\Desktop\Reinforcement Learning> pip install matplotlib
Collecting matplotlib
Using cached matplotlib-3.5.2-cp310-cp310-win_amd64.whl (7.2 MB)
Requirement already satisfied: packaging>=20.0 in c:\users\ashis\appdata\local\programs\python\python31
0\lib\site-packages (from matplotlib) (21.3)
Requirement already satisfied: pyparsing>=2.2.1 in c:\users\ashis\appdata\local\programs\python\python3
10\lib\site-packages (from matplotlib) (3.0.9)
Requirement already satisfied: numpy>=1.17 in c:\users\ashis\appdata\local\programs\python\python310\li
b\site-packages (from matplotlib) (1.23.0)
Collecting cycler>=0.10
Using cached cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting fonttools>=4.22.0
Using cached fonttools-4.34.4-py3-none-any.whl (944 kB)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\ashis\appdata\local\programs\python\pyt
hon310\lib\site-packages (from matplotlib) (2.8.2)
Requirement already satisfied: pillow>=6.2.0 in c:\users\ashis\appdata\local\programs\python\python310\
lib\site-packages (from matplotlib) (9.2.0)
Collecting kiwisolver>=1.0.1
Using cached kiwisolver-1.4.3-cp310-cp310-win_amd64.whl (55 kB)
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'c:\\users\\a
shis\\appdata\\local\\programs\\python\\python310\\lib\\site-packages\\numpy-1.23.0.dist-info\\METADATA
'
Can anyone help me with this problem?
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'c:\\users\\a
shis\\appdata\\local\\programs\\python\\python310\\lib\\site-packages\\numpy-1.23.0.dist-info\\METADATA
'
Since python got updated to 3.9 this might because of version. try to upgrade your matplolib using
pip install --upgrade matplotlib
should work. if not try this as well
pip intstall pipwin
pipwin install <package name>
Hope this helps. If not please feel free to comment

About Soundcloud scraping for uploading music to telegram group

I am trying to automatically download the new uploaded file from the below soundcloud link and upload it to a telegram group :
https://soundcloud.com/radio-hamrah-1
so I have googled the:
python script to download from soundcloud and import to telegram
group
and tried the scdl python module by its instruction, but when I have tried its on this colab page I get this error:
!pip3 install git+https://github.com/flyingrub/scdl
!scdl -l https://soundcloud.com/pandadub/sets/the-lost-ship --download-archive archive.txt -c
Collecting git+https://github.com/flyingrub/scdl
Cloning https://github.com/flyingrub/scdl to /tmp/pip-req-build-0g64ql2f
Running command git clone -q https://github.com/flyingrub/scdl /tmp/pip-req-build-0g64ql2f
Requirement already satisfied (use --upgrade to upgrade): scdl==1.6.12 from git+https://github.com/flyingrub/scdl in /usr/local/lib/python3.7/dist-packages
Requirement already satisfied: docopt in /usr/local/lib/python3.7/dist-packages (from scdl==1.6.12) (0.6.2)
Requirement already satisfied: mutagen in /usr/local/lib/python3.7/dist-packages (from scdl==1.6.12) (1.45.1)
Requirement already satisfied: termcolor in /usr/local/lib/python3.7/dist-packages (from scdl==1.6.12) (1.1.0)
Requirement already satisfied: requests in /usr/local/lib/python3.7/dist-packages (from scdl==1.6.12) (2.23.0)
Requirement already satisfied: clint in /usr/local/lib/python3.7/dist-packages (from scdl==1.6.12) (0.5.1)
Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.7/dist-packages (from requests->scdl==1.6.12) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/dist-packages (from requests->scdl==1.6.12) (1.24.3)
Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.7/dist-packages (from requests->scdl==1.6.12) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests->scdl==1.6.12) (2021.5.30)
Requirement already satisfied: args in /usr/local/lib/python3.7/dist-packages (from clint->scdl==1.6.12) (0.1.0)
Building wheels for collected packages: scdl
Building wheel for scdl (setup.py) ... done
Created wheel for scdl: filename=scdl-1.6.12-cp37-none-any.whl size=19143 sha256=27ca560a7f3947830289d0df167db84137d1554fe1ab740c2afab3db0abedd74
Stored in directory: /tmp/pip-ephem-wheel-cache-agspvyq5/wheels/49/44/6e/a5f6f709e7b231f3639ea9f9fc48a4699b958850715556e7f6
Successfully built scdl
Soundcloud Downloader
Failed to get item...
and when I try by the Docker VPS by this commands:
pip3 install git+https://github.com/flyingrub/scdl
pip3 install ffmpeg
scdl -l https://soundcloud.com/pandadub/sets/the-lost-ship --download-archive archive.txt -c
pip3 install git+https://github.com/flyingrub/scdl
pip3 install ffmpeg
scdl -l https://soundcloud.com/pandadub/sets/the-lost-ship --download-archive archive.txt -c
I get this error :
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'
So I asked abut how could i do it by scdl and soundcloude python module.
Update:
Based of my two comment on this question I get different result by using the scdl python module via the above colab page, sometimes it is working and sometimes not, which i guess it is because of soudncloud server setting for preventing huge scraping and needs some delay during the music scraping form the soundcloud.
Thanks.

Could not build wheels since package wheel is not installed

I am having this problem with wheels: 'Could not build wheels for ..., since package 'wheel' is not installed.' with several packages and I have no idea what to do since - as you can see in the very end - I have installed the wheel package
I am doing this on Ubuntu 18.04
I will be grateful for any help!
mikolajbe#mikolajbe-vb:~/freqtrade$ ./setup.sh --install
/usr/bin/python3.6
using Python 3.6
-------------------------
Installing mandatory dependencies
-------------------------
Debian/Ubuntu detected. Setup for this system in-progress
This PPA has been removed from public access as part of a protest against the abuse of open-source projects by large companies. For more detail visit the main page here: https://launchpad.net/~jonathonf
If you are a company and you would like this PPA to continue then let me know your preferred route for contributions and I will arrange something.
If we have already been in contact then ping me your Launchpad ID and I will add you to a private PPA in the meantime.
---
Donate to Python: https://www.python.org/psf/donations/
Donate to Debian: https://www.debian.org/donations
Donate to me: https://ko-fi.com/jonathonf
More info: https://launchpad.net/~jonathonf/+archive/ubuntu/python-3.6
Press [ENTER] to continue or Ctrl-c to cancel adding it.
Hit:1 http://pl.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://pl.archive.ubuntu.com/ubuntu bionic-updates InRelease
Err:3 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu bionic InRelease
403 Forbidden [IP: 91.189.95.83 80]
Hit:4 http://pl.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Reading package lists... Done
E: Failed to fetch http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu/dists/bionic/InRelease 403 Forbidden [IP: 91.189.95.83 80]
E: The repository 'http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Hit:1 http://pl.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://pl.archive.ubuntu.com/ubuntu bionic-updates InRelease
Err:3 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu bionic InRelease
403 Forbidden [IP: 91.189.95.83 80]
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Hit:5 http://pl.archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done
E: Failed to fetch http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu/dists/bionic/InRelease 403 Forbidden [IP: 91.189.95.83 80]
E: The repository 'http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Reading package lists... Done
Building dependency tree
Reading state information... Done
autoconf is already the newest version (2.69-11).
build-essential is already the newest version (12.4ubuntu1).
libtool is already the newest version (2.4.6-2).
make is already the newest version (4.1-9.1ubuntu1).
pkg-config is already the newest version (0.29.1-0ubuntu2).
git is already the newest version (1:2.17.1-1ubuntu0.7).
python3.6 is already the newest version (3.6.9-1~18.04ubuntu1).
python3.6-dev is already the newest version (3.6.9-1~18.04ubuntu1).
wget is already the newest version (1.19.4-1ubuntu2.2).
python3.6-venv is already the newest version (3.6.9-1~18.04ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 296 not upgraded.
ta-lib already installed, skipping
----------------------------
Reseting branch and virtual env
----------------------------
- Delete your previous virtual env
- Hard resetting of 'develop' branch.
HEAD is now at e08af1ab Update requirements.txt
-------------------------
Updating your virtual env
-------------------------
pip3 install in-progress. Please wait...
Cache entry deserialization failed, entry ignored
Collecting pip
Using cached https://files.pythonhosted.org/packages/54/2e/df11ea7e23e7e761d484ed3740285a34e38548cf2bad2bed3dd5768ec8b9/pip-20.1-py2.py3-none-any.whl
Collecting numpy
Cache entry deserialization failed, entry ignored
Using cached https://files.pythonhosted.org/packages/03/27/e35e7c6e6a52fab9fcc64fc2b20c6b516eba930bb02b10ace3b38200d3ab/numpy-1.18.4-cp36-cp36m-manylinux1_x86_64.whl
Installing collected packages: pip, numpy
Found existing installation: pip 9.0.1
Uninstalling pip-9.0.1:
Successfully uninstalled pip-9.0.1
Successfully installed numpy-1.18.4 pip-20.1
Collecting ccxt==1.18.119
Using cached ccxt-1.18.119-py2.py3-none-any.whl (1.2 MB)
Collecting SQLAlchemy==1.2.15
Using cached SQLAlchemy-1.2.15.tar.gz (5.6 MB)
Collecting python-telegram-bot==11.1.0
Using cached python_telegram_bot-11.1.0-py2.py3-none-any.whl (326 kB)
Collecting arrow==0.13.0
Using cached arrow-0.13.0.tar.gz (92 kB)
Collecting cachetools==3.0.0
Using cached cachetools-3.0.0-py2.py3-none-any.whl (12 kB)
Collecting requests==2.21.0
Using cached requests-2.21.0-py2.py3-none-any.whl (57 kB)
Collecting urllib3==1.24.1
Using cached urllib3-1.24.1-py2.py3-none-any.whl (118 kB)
Collecting wrapt==1.11.0
Using cached wrapt-1.11.0.tar.gz (27 kB)
Collecting pandas==0.23.4
Using cached pandas-0.23.4-cp36-cp36m-manylinux1_x86_64.whl (8.9 MB)
Collecting scikit-learn==0.20.2
Using cached scikit_learn-0.20.2-cp36-cp36m-manylinux1_x86_64.whl (5.4 MB)
Collecting joblib==0.13.0
Using cached joblib-0.13.0-py2.py3-none-any.whl (276 kB)
Collecting scipy==1.2.0
Using cached scipy-1.2.0-cp36-cp36m-manylinux1_x86_64.whl (26.6 MB)
Collecting jsonschema==2.6.0
Using cached jsonschema-2.6.0-py2.py3-none-any.whl (39 kB)
Collecting numpy==1.15.4
Using cached numpy-1.15.4-cp36-cp36m-manylinux1_x86_64.whl (13.9 MB)
Collecting TA-Lib==0.4.17
Using cached TA-Lib-0.4.17.tar.gz (717 kB)
Collecting tabulate==0.8.2
Using cached tabulate-0.8.2.tar.gz (45 kB)
Collecting coinmarketcap==5.0.3
Using cached coinmarketcap-5.0.3.tar.gz (7.0 kB)
Collecting python-rapidjson
Using cached python_rapidjson-0.9.1-cp36-cp36m-manylinux2010_x86_64.whl (1.4 MB)
Collecting scikit-optimize==0.5.2
Using cached scikit_optimize-0.5.2-py2.py3-none-any.whl (74 kB)
Collecting py_find_1st==1.1.3
Using cached py_find_1st-1.1.3.tar.gz (7.6 kB)
Collecting aiodns==1.1.1; python_version >= "3.5.2"
Using cached aiodns-1.1.1-py2.py3-none-any.whl (6.4 kB)
Requirement already satisfied, skipping upgrade: setuptools>=38.5.1 in ./.env/lib/python3.6/site-packages (from ccxt==1.18.119->-r requirements.txt (line 1)) (39.0.1)
Collecting certifi>=2018.1.18
Using cached certifi-2020.4.5.1-py2.py3-none-any.whl (157 kB)
Collecting yarl==1.1.0; python_version >= "3.5.2"
Using cached yarl-1.1.0-cp36-cp36m-manylinux1_x86_64.whl (255 kB)
Collecting aiohttp>=3.0.1; python_version >= "3.5.2"
Using cached aiohttp-3.6.2-cp36-cp36m-manylinux1_x86_64.whl (1.2 MB)
Collecting cryptography
Using cached cryptography-2.9.2-cp35-abi3-manylinux2010_x86_64.whl (2.7 MB)
Collecting future>=0.16.0
Using cached future-0.18.2.tar.gz (829 kB)
Collecting python-dateutil
Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting chardet<3.1.0,>=3.0.2
Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting idna<2.9,>=2.5
Using cached idna-2.8-py2.py3-none-any.whl (58 kB)
Collecting pytz>=2011k
Using cached pytz-2020.1-py2.py3-none-any.whl (510 kB)
Collecting requests_cache>=0.4.13
Using cached requests_cache-0.5.2-py2.py3-none-any.whl (22 kB)
Collecting pycares>=1.0.0
Using cached pycares-3.1.1-cp36-cp36m-manylinux2010_x86_64.whl (228 kB)
Collecting multidict>=4.0
Using cached multidict-4.7.5-cp36-cp36m-manylinux1_x86_64.whl (148 kB)
Collecting attrs>=17.3.0
Using cached attrs-19.3.0-py2.py3-none-any.whl (39 kB)
Collecting typing-extensions>=3.6.5; python_version < "3.7"
Using cached typing_extensions-3.7.4.2-py3-none-any.whl (22 kB)
Collecting idna-ssl>=1.0; python_version < "3.7"
Using cached idna-ssl-1.1.0.tar.gz (3.4 kB)
Collecting async-timeout<4.0,>=3.0
Using cached async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Collecting cffi!=1.11.3,>=1.8
Using cached cffi-1.14.0-cp36-cp36m-manylinux1_x86_64.whl (399 kB)
Collecting six>=1.4.1
Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting pycparser
Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Could not build wheels for SQLAlchemy, since package 'wheel' is not installed.
Could not build wheels for arrow, since package 'wheel' is not installed.
Could not build wheels for wrapt, since package 'wheel' is not installed.
Could not build wheels for TA-Lib, since package 'wheel' is not installed.
Could not build wheels for tabulate, since package 'wheel' is not installed.
Could not build wheels for coinmarketcap, since package 'wheel' is not installed.
Could not build wheels for py-find-1st, since package 'wheel' is not installed.
Could not build wheels for setuptools, since package 'wheel' is not installed.
Could not build wheels for future, since package 'wheel' is not installed.
Could not build wheels for idna-ssl, since package 'wheel' is not installed.
Installing collected packages: pycparser, cffi, pycares, aiodns, certifi, multidict, idna, yarl, attrs, typing-extensions, idna-ssl, chardet, async-timeout, aiohttp, urllib3, requests, ccxt, SQLAlchemy, six, cryptography, future, python-telegram-bot, python-dateutil, arrow, cachetools, wrapt, numpy, pytz, pandas, scipy, scikit-learn, joblib, jsonschema, TA-Lib, tabulate, requests-cache, coinmarketcap, python-rapidjson, scikit-optimize, py-find-1st
Running setup.py install for idna-ssl ... done
Running setup.py install for SQLAlchemy ... done
Running setup.py install for future ... done
Running setup.py install for arrow ... done
Running setup.py install for wrapt ... done
Attempting uninstall: numpy
Found existing installation: numpy 1.18.4
Uninstalling numpy-1.18.4:
Successfully uninstalled numpy-1.18.4
Running setup.py install for TA-Lib ... done
Running setup.py install for tabulate ... done
Running setup.py install for coinmarketcap ... done
Running setup.py install for py-find-1st ... done
Successfully installed SQLAlchemy-1.2.15 TA-Lib-0.4.17 aiodns-1.1.1 aiohttp-3.6.2 arrow-0.13.0 async-timeout-3.0.1 attrs-19.3.0 cachetools-3.0.0 ccxt-1.18.119 certifi-2020.4.5.1 cffi-1.14.0 chardet-3.0.4 coinmarketcap-5.0.3 cryptography-2.9.2 future-0.18.2 idna-2.8 idna-ssl-1.1.0 joblib-0.13.0 jsonschema-2.6.0 multidict-4.7.5 numpy-1.15.4 pandas-0.23.4 py-find-1st-1.1.3 pycares-3.1.1 pycparser-2.20 python-dateutil-2.8.1 python-rapidjson-0.9.1 python-telegram-bot-11.1.0 pytz-2020.1 requests-2.21.0 requests-cache-0.5.2 scikit-learn-0.20.2 scikit-optimize-0.5.2 scipy-1.2.0 six-1.14.0 tabulate-0.8.2 typing-extensions-3.7.4.2 urllib3-1.24.1 wrapt-1.11.0 yarl-1.1.0
Do you want to install dependencies for dev [y/N]? y
Requirement already up-to-date: ccxt==1.18.119 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 1)) (1.18.119)
Requirement already up-to-date: SQLAlchemy==1.2.15 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 2)) (1.2.15)
Requirement already up-to-date: python-telegram-bot==11.1.0 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 3)) (11.1.0)
Requirement already up-to-date: arrow==0.13.0 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 4)) (0.13.0)
Requirement already up-to-date: cachetools==3.0.0 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 5)) (3.0.0)
Requirement already up-to-date: requests==2.21.0 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 6)) (2.21.0)
Requirement already up-to-date: urllib3==1.24.1 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 7)) (1.24.1)
Requirement already up-to-date: wrapt==1.11.0 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 8)) (1.11.0)
Requirement already up-to-date: pandas==0.23.4 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 9)) (0.23.4)
Requirement already up-to-date: scikit-learn==0.20.2 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 10)) (0.20.2)
Requirement already up-to-date: joblib==0.13.0 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 11)) (0.13.0)
Requirement already up-to-date: scipy==1.2.0 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 12)) (1.2.0)
Requirement already up-to-date: jsonschema==2.6.0 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 13)) (2.6.0)
Requirement already up-to-date: numpy==1.15.4 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 14)) (1.15.4)
Requirement already up-to-date: TA-Lib==0.4.17 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 15)) (0.4.17)
Requirement already up-to-date: tabulate==0.8.2 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 16)) (0.8.2)
Requirement already up-to-date: coinmarketcap==5.0.3 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 17)) (5.0.3)
Requirement already up-to-date: python-rapidjson in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 18)) (0.9.1)
Requirement already up-to-date: scikit-optimize==0.5.2 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 21)) (0.5.2)
Requirement already up-to-date: py_find_1st==1.1.3 in ./.env/lib/python3.6/site-packages (from -r requirements.txt (line 24)) (1.1.3)
Collecting flake8==3.6.0
Using cached flake8-3.6.0-py2.py3-none-any.whl (68 kB)
Collecting pytest==4.1.0
Using cached pytest-4.1.0-py2.py3-none-any.whl (215 kB)
Collecting pytest-mock==1.10.0
Using cached pytest_mock-1.10.0-py2.py3-none-any.whl (8.5 kB)
Collecting pytest-asyncio==0.10.0
Using cached pytest_asyncio-0.10.0-py3-none-any.whl (11 kB)
Collecting pytest-cov==2.6.1
Using cached pytest_cov-2.6.1-py2.py3-none-any.whl (16 kB)
Requirement already satisfied, skipping upgrade: setuptools>=38.5.1 in ./.env/lib/python3.6/site-packages (from ccxt==1.18.119->-r requirements.txt (line 1)) (39.0.1)
Requirement already satisfied, skipping upgrade: yarl==1.1.0; python_version >= "3.5.2" in ./.env/lib/python3.6/site-packages (from ccxt==1.18.119->-r requirements.txt (line 1)) (1.1.0)
Requirement already satisfied, skipping upgrade: aiohttp>=3.0.1; python_version >= "3.5.2" in ./.env/lib/python3.6/site-packages (from ccxt==1.18.119->-r requirements.txt (line 1)) (3.6.2)
Requirement already satisfied, skipping upgrade: aiodns==1.1.1; python_version >= "3.5.2" in ./.env/lib/python3.6/site-packages (from ccxt==1.18.119->-r requirements.txt (line 1)) (1.1.1)
Requirement already satisfied, skipping upgrade: certifi>=2018.1.18 in ./.env/lib/python3.6/site-packages (from ccxt==1.18.119->-r requirements.txt (line 1)) (2020.4.5.1)
Requirement already satisfied, skipping upgrade: future>=0.16.0 in ./.env/lib/python3.6/site-packages (from python-telegram-bot==11.1.0->-r requirements.txt (line 3)) (0.18.2)
Requirement already satisfied, skipping upgrade: cryptography in ./.env/lib/python3.6/site-packages (from python-telegram-bot==11.1.0->-r requirements.txt (line 3)) (2.9.2)
Requirement already satisfied, skipping upgrade: python-dateutil in ./.env/lib/python3.6/site-packages (from arrow==0.13.0->-r requirements.txt (line 4)) (2.8.1)
Requirement already satisfied, skipping upgrade: idna<2.9,>=2.5 in ./.env/lib/python3.6/site-packages (from requests==2.21.0->-r requirements.txt (line 6)) (2.8)
Requirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in ./.env/lib/python3.6/site-packages (from requests==2.21.0->-r requirements.txt (line 6)) (3.0.4)
Requirement already satisfied, skipping upgrade: pytz>=2011k in ./.env/lib/python3.6/site-packages (from pandas==0.23.4->-r requirements.txt (line 9)) (2020.1)
Requirement already satisfied, skipping upgrade: requests_cache>=0.4.13 in ./.env/lib/python3.6/site-packages (from coinmarketcap==5.0.3->-r requirements.txt (line 17)) (0.5.2)
Collecting pyflakes<2.1.0,>=2.0.0
Using cached pyflakes-2.0.0-py2.py3-none-any.whl (53 kB)
Collecting mccabe<0.7.0,>=0.6.0
Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Collecting pycodestyle<2.5.0,>=2.4.0
Using cached pycodestyle-2.4.0-py2.py3-none-any.whl (62 kB)
Collecting atomicwrites>=1.0
Using cached atomicwrites-1.4.0-py2.py3-none-any.whl (6.8 kB)
Collecting more-itertools>=4.0.0
Using cached more_itertools-8.2.0-py3-none-any.whl (43 kB)
Collecting pluggy>=0.7
Using cached pluggy-0.13.1-py2.py3-none-any.whl (18 kB)
Requirement already satisfied, skipping upgrade: six>=1.10.0 in ./.env/lib/python3.6/site-packages (from pytest==4.1.0->-r requirements-dev.txt (line 5)) (1.14.0)
Collecting py>=1.5.0
Using cached py-1.8.1-py2.py3-none-any.whl (83 kB)
Requirement already satisfied, skipping upgrade: attrs>=17.4.0 in ./.env/lib/python3.6/site-packages (from pytest==4.1.0->-r requirements-dev.txt (line 5)) (19.3.0)
Collecting coverage>=4.4
Using cached coverage-5.1-cp36-cp36m-manylinux1_x86_64.whl (227 kB)
Requirement already satisfied, skipping upgrade: multidict>=4.0 in ./.env/lib/python3.6/site-packages (from yarl==1.1.0; python_version >= "3.5.2"->ccxt==1.18.119->-r requirements.txt (line 1)) (4.7.5)
Requirement already satisfied, skipping upgrade: idna-ssl>=1.0; python_version < "3.7" in ./.env/lib/python3.6/site-packages (from aiohttp>=3.0.1; python_version >= "3.5.2"->ccxt==1.18.119->-r requirements.txt (line 1)) (1.1.0)
Requirement already satisfied, skipping upgrade: async-timeout<4.0,>=3.0 in ./.env/lib/python3.6/site-packages (from aiohttp>=3.0.1; python_version >= "3.5.2"->ccxt==1.18.119->-r requirements.txt (line 1)) (3.0.1)
Requirement already satisfied, skipping upgrade: typing-extensions>=3.6.5; python_version < "3.7" in ./.env/lib/python3.6/site-packages (from aiohttp>=3.0.1; python_version >= "3.5.2"->ccxt==1.18.119->-r requirements.txt (line 1)) (3.7.4.2)
Requirement already satisfied, skipping upgrade: pycares>=1.0.0 in ./.env/lib/python3.6/site-packages (from aiodns==1.1.1; python_version >= "3.5.2"->ccxt==1.18.119->-r requirements.txt (line 1)) (3.1.1)
Requirement already satisfied, skipping upgrade: cffi!=1.11.3,>=1.8 in ./.env/lib/python3.6/site-packages (from cryptography->python-telegram-bot==11.1.0->-r requirements.txt (line 3)) (1.14.0)
Collecting importlib-metadata>=0.12; python_version < "3.8"
Using cached importlib_metadata-1.6.0-py2.py3-none-any.whl (30 kB)
Requirement already satisfied, skipping upgrade: pycparser in ./.env/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.8->cryptography->python-telegram-bot==11.1.0->-r requirements.txt (line 3)) (2.20)
Collecting zipp>=0.5
Using cached zipp-3.1.0-py3-none-any.whl (4.9 kB)
Could not build wheels for ccxt, since package 'wheel' is not installed.
Could not build wheels for SQLAlchemy, since package 'wheel' is not installed.
Could not build wheels for python-telegram-bot, since package 'wheel' is not installed.
Could not build wheels for arrow, since package 'wheel' is not installed.
Could not build wheels for cachetools, since package 'wheel' is not installed.
Could not build wheels for requests, since package 'wheel' is not installed.
Could not build wheels for urllib3, since package 'wheel' is not installed.
Could not build wheels for wrapt, since package 'wheel' is not installed.
Could not build wheels for pandas, since package 'wheel' is not installed.
Could not build wheels for scikit-learn, since package 'wheel' is not installed.
Could not build wheels for joblib, since package 'wheel' is not installed.
Could not build wheels for scipy, since package 'wheel' is not installed.
Could not build wheels for jsonschema, since package 'wheel' is not installed.
Could not build wheels for numpy, since package 'wheel' is not installed.
Could not build wheels for TA-Lib, since package 'wheel' is not installed.
Could not build wheels for tabulate, since package 'wheel' is not installed.
Could not build wheels for coinmarketcap, since package 'wheel' is not installed.
Could not build wheels for python-rapidjson, since package 'wheel' is not installed.
Could not build wheels for scikit-optimize, since package 'wheel' is not installed.
Could not build wheels for py-find-1st, since package 'wheel' is not installed.
Could not build wheels for setuptools, since package 'wheel' is not installed.
Could not build wheels for yarl, since package 'wheel' is not installed.
Could not build wheels for aiohttp, since package 'wheel' is not installed.
Could not build wheels for aiodns, since package 'wheel' is not installed.
Could not build wheels for certifi, since package 'wheel' is not installed.
Could not build wheels for future, since package 'wheel' is not installed.
Could not build wheels for cryptography, since package 'wheel' is not installed.
Could not build wheels for python-dateutil, since package 'wheel' is not installed.
Could not build wheels for idna, since package 'wheel' is not installed.
Could not build wheels for chardet, since package 'wheel' is not installed.
Could not build wheels for pytz, since package 'wheel' is not installed.
Could not build wheels for requests-cache, since package 'wheel' is not installed.
Could not build wheels for six, since package 'wheel' is not installed.
Could not build wheels for attrs, since package 'wheel' is not installed.
Could not build wheels for multidict, since package 'wheel' is not installed.
Could not build wheels for idna-ssl, since package 'wheel' is not installed.
Could not build wheels for async-timeout, since package 'wheel' is not installed.
Could not build wheels for typing-extensions, since package 'wheel' is not installed.
Could not build wheels for pycares, since package 'wheel' is not installed.
Could not build wheels for cffi, since package 'wheel' is not installed.
Could not build wheels for pycparser, since package 'wheel' is not installed.
Installing collected packages: pyflakes, mccabe, pycodestyle, flake8, atomicwrites, more-itertools, zipp, importlib-metadata, pluggy, py, pytest, pytest-mock, pytest-asyncio, coverage, pytest-cov
Successfully installed atomicwrites-1.4.0 coverage-5.1 flake8-3.6.0 importlib-metadata-1.6.0 mccabe-0.6.1 more-itertools-8.2.0 pluggy-0.13.1 py-1.8.1 pycodestyle-2.4.0 pyflakes-2.0.0 pytest-4.1.0 pytest-asyncio-0.10.0 pytest-cov-2.6.1 pytest-mock-1.10.0 zipp-3.1.0
pip3 install completed
-------------------------
Generating config file
-------------------------
A config file already exist, do you want to override it [y/N]? y
Starting to generate config.json
Generating General configuration
-------------------------
Max open trades: (Default: 3)
Stake amount: (Default: 0.05)
Stake currency: (Default: BTC)
Fiat currency: (Default: USD)
Generating exchange config
------------------------
Exchange API key:
Exchange API Secret:
Generating Telegram config
-------------------------
Telegram Token:
Telegram Chat_id:
-------------------------
Config file generated
-------------------------
Edit ./config.json to modify Pair and other configurations.
-------------------------
Run the bot !
-------------------------
You can now use the bot by executing 'source .env/bin/activate; python freqtrade/main.py'.
mikolajbe#mikolajbe-vb:~/freqtrade$ pip3 install wheel
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: wheel in /home/mikolajbe/.local/lib/python3.6/site-packages (0.34.2)
You need to install the wheel package, like this: pip install wheel

Unable to install pysal due to setup.py egg_info file

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

pip skipping upgrade, says requirement already satisfied when it is not satisfied

Here's the output of a pip install --upgrade:
[vagrant#cclab8-ht-esx-11 f5]$ sudo pip install f5-icontrol-rest --upgrade
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Looking in indexes: https://pypi.org/simple, https://apds-web1.noc.bluecoatcloud.com/symc_pypi/symc_pypi_server.wsgi
Collecting f5-icontrol-rest
Using cached https://files.pythonhosted.org/packages/e0/44/91979de0a81253d025a0814f16f53df46d3ed3edd5b9fd7181f28a9dd0bb/f5-icontrol-rest-1.3.13.tar.gz
Requirement already satisfied, skipping upgrade: requests<3,>=2.5.0 in /usr/lib/python2.7/site-packages (from f5-icontrol-rest) (2.21.0)
Requirement already satisfied, skipping upgrade: urllib3<1.25,>=1.21.1 in /usr/lib/python2.7/site-packages (from requests<3,>=2.5.0->f5-icontrol-rest) (1.24.1)
Requirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in /usr/lib/python2.7/site-packages (from requests<3,>=2.5.0->f5-icontrol-rest) (3.0.4)
Requirement already satisfied, skipping upgrade: idna<2.9,>=2.5 in /usr/lib/python2.7/site-packages (from requests<3,>=2.5.0->f5-icontrol-rest) (2.8)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /usr/lib/python2.7/site-packages (from requests<3,>=2.5.0->f5-icontrol-rest) (2018.11.29)
Building wheels for collected packages: f5-icontrol-rest
Building wheel for f5-icontrol-rest (setup.py) ... done
Stored in directory: /root/.cache/pip/wheels/12/43/4c/9c3051759105429cd633ed53ece367db44b082fce01c28db46
Successfully built f5-icontrol-rest
Installing collected packages: f5-icontrol-rest
Found existing installation: f5-icontrol-rest 1.3.12
Uninstalling f5-icontrol-rest-1.3.12:
Successfully uninstalled f5-icontrol-rest-1.3.12
Successfully installed f5-icontrol-rest-1.3.13
You are using pip version 19.0.2, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The issue is that my system requests package is version 2.21.0, and 2.21.0 is not greater than or equal to 2.5.0, yet pip says that the requirement is satisfied.
I do not understand this line:
Requirement already satisfied, skipping upgrade: requests<3,>=2.5.0 in /usr/lib/python2.7/site-packages (from f5-icontrol-rest) (2.21.0)
Does anyone understand why the requirement is satisfied? Why was requests not upgraded?
So yeah, 2.5.0 isn't the same as 2.50.0.

Categories