Python Forum

Full Version: Unusual Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
While I tried to install autokeras. I had to run this command first. The output was fine except for one
line toward the end which was an error(it was printed in red letters on the screen).

Output:
(Autokeras) C:\Users\james\Downloads>pip install git+https://github.com/keras-team/keras-tuner.git Collecting git+https://github.com/keras-team/keras-tuner.git Cloning https://github.com/keras-team/keras-tuner.git to c:\users\james\appdata\local\temp\pip-req-build-hucdmtkr Running command git clone -q https://github.com/keras-team/keras-tuner.git 'C:\Users\james\AppData\Local\Temp\pip-req-build-hucdmtkr' Requirement already satisfied: packaging in c:\users\james\miniconda3\envs\autokeras\lib\site-packages (from keras-tuner==1.0.3) (20.9) Requirement already satisfied: numpy in c:\users\james\miniconda3\envs\autokeras\lib\site-packages (from keras-tuner==1.0.3) (1.19.5) Collecting requests Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB) Requirement already satisfied: scipy in c:\users\james\miniconda3\envs\autokeras\lib\site-packages (from keras-tuner==1.0.3) (1.5.4) Collecting tensorboard Downloading tensorboard-2.5.0-py3-none-any.whl (6.0 MB) |████████████████████████████████| 6.0 MB 2.2 MB/s Requirement already satisfied: ipython in c:\users\james\appdata\roaming\python\python36\site-packages (from keras-tuner==1.0.3) (7.16.1) Requirement already satisfied: pickleshare in c:\users\james\appdata\roaming\python\python36\site-packages (from ipython->keras-tuner==1.0.3) (0.7.5) Requirement already satisfied: traitlets>=4.2 in c:\users\james\appdata\roaming\python\python36\site-packages (from ipython->keras-tuner==1.0.3) (4.3.3) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in c:\users\james\appdata\roaming\python\python36\site-packages (from ipython->keras-tuner==1.0.3) (3.0.18) Requirement already satisfied: backcall in c:\users\james\appdata\roaming\python\python36\site-packages (from ipython->keras-tuner==1.0.3) (0.2.0) Requirement already satisfied: pygments in c:\users\james\appdata\roaming\python\python36\site-packages (from ipython->keras-tuner==1.0.3) (2.8.1) Requirement already satisfied: colorama in c:\users\james\appdata\roaming\python\python36\site-packages (from ipython->keras-tuner==1.0.3) (0.4.4) Requirement already satisfied: setuptools>=18.5 in c:\users\james\miniconda3\envs\autokeras\lib\site-packages (from ipython->keras-tuner==1.0.3) (52.0.0.post20210125) Requirement already satisfied: decorator in c:\users\james\appdata\roaming\python\python36\site-packages (from ipython->keras-tuner==1.0.3) (5.0.6) Requirement already satisfied: jedi>=0.10 in c:\users\james\appdata\roaming\python\python36\site-packages (from ipython->keras-tuner==1.0.3) (0.18.0) Requirement already satisfied: parso<0.9.0,>=0.8.0 in c:\users\james\appdata\roaming\python\python36\site-packages (from jedi>=0.10->ipython->keras-tuner==1.0.3) (0.8.2) Requirement already satisfied: wcwidth in c:\users\james\appdata\roaming\python\python36\site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython->keras-tuner==1.0.3) (0.2.5) Requirement already satisfied: six in c:\users\james\appdata\roaming\python\python36\site-packages (from traitlets>=4.2->ipython->keras-tuner==1.0.3) (1.15.0) Requirement already satisfied: ipython-genutils in c:\users\james\appdata\roaming\python\python36\site-packages (from traitlets>=4.2->ipython->keras-tuner==1.0.3) (0.2.0) Requirement already satisfied: pyparsing>=2.0.2 in c:\users\james\miniconda3\envs\autokeras\lib\site-packages (from packaging->keras-tuner==1.0.3) (2.4.7) Collecting idna<3,>=2.5 Using cached idna-2.10-py2.py3-none-any.whl (58 kB) Requirement already satisfied: certifi>=2017.4.17 in c:\users\james\miniconda3\envs\autokeras\lib\site-packages (from requests->keras-tuner==1.0.3) (2020.12.5) Requirement already satisfied: chardet<5,>=3.0.2 in c:\users\james\miniconda3\envs\autokeras\lib\site-packages (from requests->keras-tuner==1.0.3) (4.0.0) Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\james\miniconda3\envs\autokeras\lib\site-packages (from requests->keras-tuner==1.0.3) (1.26.4) ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'c:\\users\\james\\miniconda3\\envs\\autokeras\\lib\\site-packages\\urllib3-1.26.4.dist-info\\METADATA'
My question is simple. How do I get rid of this annoying error?

Output:
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'c:\\users\\james\\miniconda3\\envs\\autokeras\\lib\\site-packages\\urllib3-1.26.4.dist-info\\METADATA'
This error has been popping up all morning.

Any help appreciated.


Respectfully,

LZ
There is something unusual about this package in general.
There are conflicting install statements between pypi.org and github.

The Pypi installation instructions show:
Output:
pip3 install git+https://github.com/keras-team/keras-tuner.git pip3 install autokeras
whereas the GitHub installation instructions show only:
Output:
pip3 install autokeras
I'm not sure what pip3 install git+https://github.com/keras-team/keras-tuner.git
is doing, not sure if that's a clone, or what.