Trying to install pysal, (Python Spatial Analysis Library), but get the error report. I have searched and read lots of answers, most of the solutions are upgrade setuptools. But I have tried and nothing changed. I tried to reinstall pandas with pip, everything goes well without any error report. By the way, I have also tried to install the old version of setuptools and pip, the error still occurred.
Can anyone help me solve this error? Thanks for your help.
C:\Users\kenny>pip install --upgrade setuptools
Looking in indexes: https://pypi.mirrors.ustc.edu.cn/simple
Requirement already satisfied: setuptools in d:\users\kenny\appdata\local\programs\python\python39\lib\site-packages (63.2.0)
C:\Users\kenny>python -m pip install --upgrade pip
Looking in indexes: https://pypi.mirrors.ustc.edu.cn/simple
Requirement already satisfied: pip in d:\users\kenny\appdata\local\programs\python\python39\lib\site-packages (22.2.1)
C:\Users\kenny>pip install pysal
Looking in indexes: https://pypi.mirrors.ustc.edu.cn/simple
Collecting pysal
Using cached https://mirrors.bfsu.edu.cn/pypi/web/packages/e0/da/6d67ab14112985dd0d530c058fd1004a3b8ba8514f6166c7903104c65f2e/pysal-2.6.0-py3-none-any.whl (17 kB)
Collecting spopt>=0.2.1
Using cached https://mirrors.bfsu.edu.cn/pypi/web/packages/a6/e4/24e4efa4798372a04ece786bc4983c7617cc0fece1e4f6e980d723bee63b/spopt-0.4.1-py3-none-any.whl (84 kB)
Collecting access>=1.1.3
Downloading https://mirrors.bfsu.edu.cn/pypi/web/packages/06/34/3fa0407af9ac1c27784d816629480e3ea11f5ba6317a1bb04ebb6097e134/access-1.1.8-py3-none-any.whl (21 kB)
Collecting inequality>=1.0.0
Using cached https://mirrors.bfsu.edu.cn/pypi/web/packages/74/0f/9ed2d097f29160d0c873f33ffc0b9806c1083e3611acb2143eb66adcf580/inequality-1.0.0.tar.gz (11 kB)
Preparing metadata (setup.py) ... done
ERROR: No .egg-info directory found in C:\Users\kenny\AppData\Local\Temp\pip-pip-egg-info-ygsexy4a
I have no idea about this question. Just provide another solution to install pysal. I installed this package from git directly and successful. just git clone https://github.com/pysal/pysal - cd pysal - python setup.py install. I hope this can help you. End
So according to my terminal, I am on python --version 3.9.9. I have been trying to turn a large python GUI project into a .exe file by using cx_Freeze. I installed it using the command:
pip install cx_Freeze
This results in what I believe to be a successful installation because I am getting the following result:
Collecting cx-Freeze
Using cached cx_Freeze-6.11.1-cp39-cp39-macosx_10_9_x86_64.whl (14.7 MB)
Requirement already satisfied: packaging>=21.0 in /opt/anaconda3/lib/python3.9/site-packages (from cx-Freeze) (21.3)
Requirement already satisfied: importlib-metadata>=4.8.3 in /opt/anaconda3/lib/python3.9/site-packages (from cx-Freeze) (4.11.3)
Requirement already satisfied: setuptools<=60.10.0,>=59.0.1 in /opt/anaconda3/lib/python3.9/site-packages (from cx-Freeze) (60.10.0)
Requirement already satisfied: zipp>=0.5 in /opt/anaconda3/lib/python3.9/site-packages (from importlib-metadata>=4.8.3->cx-Freeze) (3.7.0)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /opt/anaconda3/lib/python3.9/site-packages (from packaging>=21.0->cx-Freeze) (3.0.4)
Installing collected packages: cx-Freeze
Successfully installed cx-Freeze-6.11.1
The problem I am having is that in my setup.py file, I have an undefined reference error under cx_Freeze, setup, and Executable in the following line:
from cx_Freeze import setup, Executable
I have tried installing cx_Freeze through the GUI on pyCharm but it fails. Here is my interpreter information on pyCharm:
Python 3.9 located at /opt/anaconda3/envs/LADS/bin/python
Any insight would be much appreciated. Thanks.
I have been trying to install imblearn on jupyter for some time.
I run to the error:
!pip install imblearn --ignore-installed scikit-learn
collecting imblearn
Using cached https://files.pythonhosted.org/packages/81/a7/4179e6ebfd654bd0eac0b9c06125b8b4c96a9d0a8ff9e9507eb2a26d2d7e/imblearn-0.0-py2.py3-none-any.whl
Collecting scikit-learn
Using cached https://files.pythonhosted.org/packages/9d/20/0ffe8665a44bce7616bd33d4368a198fecad3b226bcafa38c63ef0f6286f/scikit_learn-1.0.2-cp37-cp37m-win_amd64.whl
Collecting imbalanced-learn (from imblearn)
Using cached https://files.pythonhosted.org/packages/19/79/e86c8fd859dca4fb1fbfc61376afc63210177a235a7bfbe7219b02edf8f3/imbalanced_learn-0.9.1-py3-none-any.whl
Collecting threadpoolctl>=2.0.0 (from scikit-learn)
Using cached https://files.pythonhosted.org/packages/61/cf/6e354304bcb9c6413c4e02a747b600061c21d38ba51e7e544ac7bc66aecc/threadpoolctl-3.1.0-py3-none-any.whl
Collecting joblib>=0.11 (from scikit-learn)
Using cached https://files.pythonhosted.org/packages/3e/d5/0163eb0cfa0b673aa4fe1cd3ea9d8a81ea0f32e50807b0c295871e4aab2e/joblib-1.1.0-py2.py3-none-any.whl
Collecting scipy>=1.1.0 (from scikit-learn)
Using cached https://files.pythonhosted.org/packages/40/69/4af412d078cef2298f7d90546fa0e03e65a032558bd85319239c72ae0c3c/scipy-1.7.3-cp37-cp37m-win_amd64.whl
Collecting numpy>=1.14.6 (from scikit-learn)
Using cached https://files.pythonhosted.org/packages/97/9f/da37cc4a188a1d5d203d65ab28d6504e17594b5342e0c1dc5610ee6f4535/numpy-1.21.6-cp37-cp37m-win_amd64.whl
Installing collected packages: numpy, scipy, threadpoolctl, joblib, scikit-learn, imbalanced-learn, imblearn
i have tried to upgrade my scikit-learn version to 1.1.0 that also returned an error that this is not availble .
i also tried to run this on the command prompt:
(base) C:\Users\agns1>pip install imblearn on anaconda pip install imblearn
Collecting imblearn
Using cached https://files.pythonhosted.org/packages/81/a7/4179e6ebfd654bd0eac0b9c06125b8b4c96a9d0a8ff9e9507eb2a26d2d7e/imblearn-0.0-py2.py3-none-any.whl
Collecting on
Downloading https://files.pythonhosted.org/packages/ec/8a/a19679d9e009f8eeedce74fdcc252c5a5c834b30f98c4c13a3a93ff92842/on-0.0.4-py3-none-any.whl (47kB)
|████████████████████████████████| 51kB 469kB/s
Collecting anaconda
Downloading https://files.pythonhosted.org/packages/bd/81/44690deb604d72ffa59ec6e5552f4ef21afb59c8e2698717c8a6be4af09c/anaconda-0.0.1.1.tar.gz
Requirement already satisfied: pip in c:\users\agns1\anaconda3\lib\site-packages (19.2.3)
Collecting install
Downloading https://files.pythonhosted.org/packages/4d/c8/8cbca135f9e167810756ea2bc34b028501936675fcbd7dadccf752fa4622/install-1.3.5-py3-none-any.whl
Collecting imbalanced-learn (from imblearn)
Using cached https://files.pythonhosted.org/packages/19/79/e86c8fd859dca4fb1fbfc61376afc63210177a235a7bfbe7219b02edf8f3/imbalanced_learn-0.9.1-py3-none-any.whl
Requirement already satisfied: joblib>=1.0.0 in c:\users\agns1\anaconda3\lib\site-packages (from imbalanced-learn->imblearn) (1.1.0)
Collecting numpy>=1.17.3 (from imbalanced-learn->imblearn)
Using cached https://files.pythonhosted.org/packages/97/9f/da37cc4a188a1d5d203d65ab28d6504e17594b5342e0c1dc5610ee6f4535/numpy-1.21.6-cp37-cp37m-win_amd64.whl
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\agns1\anaconda3\lib\site-packages (from imbalanced-learn->imblearn) (3.1.0)
Collecting scikit-learn>=1.1.0 (from imbalanced-learn->imblearn)
ERROR: Could not find a version that satisfies the requirement scikit-learn>=1.1.0 (from imbalanced-learn->imblearn) (from versions: 0.9, 0.10, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.14, 0.14.1, 0.15.0b1, 0.15.0b2, 0.15.0, 0.15.1, 0.15.2, 0.16b1, 0.16.0, 0.16.1, 0.17b1, 0.17, 0.17.1, 0.18, 0.18.1, 0.18.2, 0.19b2, 0.19.0, 0.19.1, 0.19.2, 0.20rc1, 0.20.0, 0.20.1, 0.20.2, 0.20.3, 0.20.4, 0.21rc2, 0.21.0, 0.21.1, 0.21.2, 0.21.3, 0.22rc2.post1, 0.22rc3, 0.22, 0.22.1, 0.22.2, 0.22.2.post1, 0.23.0rc1, 0.23.0, 0.23.1, 0.23.2, 0.24.dev0, 0.24.0rc1, 0.24.0, 0.24.1, 0.24.2, 1.0rc1, 1.0rc2, 1.0, 1.0.1, 1.0.2)
ERROR: No matching distribution found for scikit-learn>=1.1.0 (from imbalanced-learn->imblearn)
(base) C:\Users\agns1>scikit-learn
ERROR: imbalanced-learn 0.9.1 has requirement scikit-learn>=1.1.0, but you'll have scikit-learn 1.0.2 which is incompatible.
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\\Users\\agns1\\Anaconda3\\Lib\\site-packages\\numpy\\.libs\\libopenblas.XWYDX2IKJW2NMTWSFYNGFUWKQU3LYTCZ.gfortran-win_amd64.dll'
Consider using the `--user` option or check the permissions.
it also returned an error is there any way to install imblearn in order to use the SMOTE from it ?
thank you:)
Conda is throwing an environment error that basically says: "you cannot upgrade scikit-learn because you do not have permission to update libopenblas."
The easiest fix would be to create a new environment and install a fresh set of dependencies:
conda create -y -n imblearn python=3.9
conda activate imblearn
python -m pip install imbalanced-learn
Fixing the permission error in the base environment is a different matter. Reinstalling conda might be the easiest option. The conda getting started guide should be helpful for these points:
https://conda.io/projects/conda/en/latest/user-guide/getting-started.html
Hi after pasting this command to console: pip install torch==1.7.1+cpu torchvision==0.8.2+cpu torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html (as shown on PyTorch website) I get this error:
C:\Users\m.povilaika>pip install torch==1.7.1+cpu torchvision==0.8.2+cpu torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
Looking in links: https://download.pytorch.org/whl/torch_stable.html
Collecting torch==1.7.1+cpu
Using cached https://download.pytorch.org/whl/cpu/torch-1.7.1%2Bcpu-cp39-cp39-win_amd64.whl (184.2 MB)
Collecting torchvision==0.8.2+cpu
Using cached https://download.pytorch.org/whl/cpu/torchvision-0.8.2%2Bcpu-cp39-cp39-win_amd64.whl (804 kB)
Collecting torchaudio===0.7.2
Using cached https://download.pytorch.org/whl/torchaudio-0.7.2-cp39-none-win_amd64.whl (103 kB)
Requirement already satisfied: numpy in c:\users\m.povilaika\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from torch==1.7.1+cpu) (1.19.4)
Requirement already satisfied: typing-extensions in c:\users\m.povilaika\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from torch==1.7.1+cpu) (3.7.4.3)
Requirement already satisfied: pillow>=4.1.1 in c:\users\m.povilaika\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (from torchvision==0.8.2+cpu) (8.1.0)
Installing collected packages: torch, torchvision, torchaudio
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\\Users\\m.povilaika\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\caffe2\\python\\serialized_test\\data\\operator_test\\collect_and_distribute_fpn_rpn_proposals_op_test.test_collect_and_dist.zip'
Please help, I don't usually use windows, not sure what to do about the path error.
Thanks in advance.
I am trying to install tensorflowjs on my virtual environment, but am getting the following error:
Could not find a version that satisfies the requirement tf-nightly-2.0-preview>=2.0.0.dev20190304 (from tensorflowjs) (from versions: )
No matching distribution found for tf-nightly-2.0-preview>=2.0.0.dev20190304 (from tensorflowjs)
I have tried upgrading pip and creating the virtual environment with both virtualenv and venv, and installing it with and without the option --no-cache-dir.
To reproduce the error, I do the following:
python3 -m venv .env
source .env/bin/activate
pip install tensorflowjs
This results in the output:
Collecting tensorflowjs
Downloading https://files.pythonhosted.org/packages/79/29/35e1aa467436ff46b98df65a08c49faaedb3429e1c512d1d90fe308040a0/tensorflowjs-1.0.1-py3-none-any.whl
Collecting tensorflow-hub==0.3.0 (from tensorflowjs)
Downloading https://files.pythonhosted.org/packages/9e/f0/3a3ced04c8359e562f1b91918d9bde797c8a916fcfeddc8dc5d673d1be20/tensorflow_hub-0.3.0-py2.py3-none-any.whl (73kB)
100% |████████████████████████████████| 81kB 7.6MB/s
Collecting numpy==1.15.1 (from tensorflowjs)
Downloading https://files.pythonhosted.org/packages/d4/fd/6c1c98862f78b1aacd8d81811900ddd5cbe34a6ed168e8f84e4df7cac30f/numpy-1.15.1-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (24.5MB)
100% |████████████████████████████████| 24.5MB 39.6MB/s
Collecting h5py==2.8.0 (from tensorflowjs)
Downloading https://files.pythonhosted.org/packages/2a/13/d3fb885ff877578e0fddd8c71e1ed9e22207cec8469c0ef1e483ab5ca0d3/h5py-2.8.0-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (6.0MB)
100% |████████████████████████████████| 6.1MB 42.3MB/s
Collecting keras==2.2.4 (from tensorflowjs)
Downloading https://files.pythonhosted.org/packages/5e/10/aa32dad071ce52b5502266b5c659451cfd6ffcbf14e6c8c4f16c0ff5aaab/Keras-2.2.4-py2.py3-none-any.whl (312kB)
100% |████████████████████████████████| 317kB 44.3MB/s
Collecting six==1.11.0 (from tensorflowjs)
Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting tf-nightly-2.0-preview>=2.0.0.dev20190304 (from tensorflowjs)
Could not find a version that satisfies the requirement tf-nightly-2.0-preview>=2.0.0.dev20190304 (from tensorflowjs) (from versions: )
No matching distribution found for tf-nightly-2.0-preview>=2.0.0.dev20190304 (from tensorflowjs)
I am using Python 3.7.2, pip 19.0.3, on a macOS 10.13.6.
tf-nightly-2.0-preview releases binaries for MacOS only for Python 2.7 and 3.6.
Always usage of stable version of tf-nightly is recommended, use command
!pip install tf-nightly
I ran into the same issue and only had success with python 3.6, give that a try if you can.