error:ERROR: Could not find a version that satisfies the requirement QtCore (from versions: none) ERROR: No matching distribution found for QtCore - qtcore

When I like install pip install QtCore its saying ERROR: Could not find a version that satisfies the requirement QtCore (from versions: none)
ERROR: No matching distribution found for QtCore

Related

ERROR installing dbx - pip install dbx - pipenv error cffi

I am trying to set a connection with Visual Studio Code with Databricks using pyenv following these instructions: https://docs.databricks.com/dev-tools/ide-how-to.html
When I try to install dbx (pip install dbx) I have an error on the cffi package. I am using Python 3.8.9 and pip 23.00.
The blocks of errors I get are:
Building wheels for collected packages: cffi
Building wheel for cffi (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
c/_cffi_backend.c:2:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build cffi
Installing collected packages: cffi, binaryornot, aiosignal, gitpython, databricks-cli, cryptography, arrow, aiohttp, mlflow-skinny, jinja2-time, cookiecutter, dbx
Running setup.py install for cffi ... error
error: subprocess-exited-with-error
× Running setup.py install for cffi did not run successfully.
│ exit code: 1
...
c/_cffi_backend.c:2:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure
× Encountered error while trying to install package. ╰─> cffi
In case it helps, the machine-software specifications are (sw_vers output):
ProductName: macOS
ProductVersion: 12.3
BuildVersion: 21E230
I am not a developer and I do not have much control about these things but I have read that it may be related to gcc. Here is the output of gcc --version:
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin21.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
On the other hand, it is clear that cffi is not installed since pip show cffi:
WARNING: Package(s) not found: cffi

Installation errors in Tensorflow Federated tutorial in Google Colab

I am a new learner to Federated Learning. I tried to start with tutorial "Federated Learning for Image Classification" on Colab but met some problems. When I installed TensorFlow and TensorFlow Federated,
##test {"skip": true}
# tensorflow_federated_nightly also bring in tf_nightly, which
# can causes a duplicate tensorboard install, leading to errors.
!pip uninstall --yes tensorboard tb-nightly
!pip install --quiet --upgrade tensorflow-federated-nightly
!pip install --quiet --upgrade nest-asyncio
!pip install --quiet --upgrade tb-nightly # or tensorboard, but not both
import nest_asyncio
nest_asyncio.apply()
some error occurs
ERROR: tensorflow 2.5.0 requires tensorboard~=2.5, which is not installed.
ERROR: tensorflow 2.5.0 has requirement grpcio~=1.34.0, but you'll have grpcio 1.37.1 which is incompatible.
ERROR: tensorflow 2.5.0 has requirement keras-nightly~=2.5.0.dev, but you'll have keras-nightly 2.7.0.dev2021071300 which is incompatible.
ERROR: spacy 2.2.4 has requirement tqdm<5.0.0,>=4.38.0, but you'll have tqdm 4.28.1 which is incompatible.
ERROR: pymc3 3.11.2 has requirement cachetools>=4.2.1, but you'll have cachetools 3.1.1 which is incompatible.
ERROR: fbprophet 0.7.1 has requirement tqdm>=4.36.1, but you'll have tqdm 4.28.1 which is incompatible.
ERROR: datascience 0.10.6 has requirement folium==0.2.1, but you'll have folium 0.8.3 which is incompatible.
ERROR: tensorflow-privacy 0.6.1 has requirement attrs>=21.2.0, but you'll have attrs 19.3.0 which is incompatible.
I see some similar question regarding these errors and then run the rest of cells. However, when it comes to code
import collections
import numpy as np
import tensorflow as tf
import tensorflow_federated as tff
Errors occur again:
ImportError Traceback (most recent call last) <ipython-input-3-a23308ec3f7c> in <module>()
3 import numpy as np
4 import tensorflow as tf
----> 5 import tensorflow_federated as tff
6
7 np.random.seed(0)
28 frames
/usr/local/lib/python3.7/dist-packages/keras/api/_v2/keras/__init__.py in <module>()
8 import sys as _sys
9
---> 10 from keras import __version__
11 from keras.api._v2.keras import __internal__
12 from keras.api._v2.keras import activations
ImportError: cannot import name '__version__' from 'keras' (/usr/local/lib/python3.7/dist-packages/keras/__init__.py)
I am not familiar with TensorFlow Federated. Has anyone else faced same issue? Need pointers to resolve this.
Start with a clean runtime and add a code section with the following:
!pip uninstall tensorflow keras -y
Run this before you run anything else, and restart your runtime. Then you can run the rest of the tutorial.

Missing symbol in brew-installed cartopy

I am attempting to install Cartopy on a new MacBook Pro running Big Sur using homebrew. I've done the following:
brew install proj
brew install geos
brew install pkg-config
setenv PKG_CONFIG_PATH /usr/local/lib/pkgconfig
pip3 uninstall shapely
pip3 install shapely --no-binary shapely
pip3 install cartopy
This failed because it couldn't find proj_api.h. After manually setting CFLAGS to I/Library/Frameworks/PROJ.framework/Headers (which has the only copy of proj_api.h that I can find), installation succeeded. However... when I attempt to import cartopy in a python script, I get the following error:
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cartopy/__init__.py", line 104, in <module>
import cartopy.crs
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cartopy/crs.py", line 22, in <module>
from cartopy._crs import (CRS, Geodetic, Globe, PROJ4_VERSION,
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cartopy/_crs.cpython-39-darwin.so, 2): Symbol not found: _pj_free
Referenced from: /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cartopy/_crs.cpython-39-darwin.so
Expected in: flat namespace
in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cartopy/_crs.cpython-39-darwin.so
Does anyone have any idea what I might be doing wrong (other than failing to use conda to start with)?

How do install pywin32 on MAC OS [duplicate]

This question already has an answer here:
python win32api for Mac
(1 answer)
Closed 1 year ago.
i get the following error
ERROR: Could not find a version that satisfies the requirement pywin32 (from versions: none)
ERROR: No matching distribution found for pywin32
WARNING: You are using pip version 20.1; however, version 20.1.1 is available.
You should consider upgrading via the '/Users/abc/Documents/Python /pycharmtest2/venv/bin/python -m pip install --upgrade pip' command.
pywin32 is a wrapper for Windows API calls, so you can't use it on MacOS
% pip install pywin32
ERROR: Could not find a version that satisfies the requirement pywin32 (from versions: none)
ERROR: No matching distribution found for pywin32
it is used for only windows

Cannot upgrade ipython from 1.1 to 4.0 on Windows 64bit

I cannot get my ipython upgraded or installed properly
C:\big data\ipython-notebooks>pip install --upgrade ipython
Downloading/unpacking ipython from https://pypi.python.org/packages/source/i/ipython/ipython-4.0.0b1.tar.gz#md
5=e32e4ea0ed8312311bb8cb3e0af0bea1
Running setup.py egg_info for package ipython
C:\Python27\lib\site-packages\setuptools\dist.py:284: UserWarning: The version specified requires normaliz
ation, consider using '4.0.0b1' instead of '4.0.0-b1'.
self.metadata.version,
Downloading/unpacking decorator from https://pypi.python.org/packages/source/d/decorator/decorator-4.0.2.tar.g
z#md5=033c9563af492c4ce2680ee6ca481fa7 (from ipython)
Running setup.py egg_info for package decorator
Downloading/unpacking pickleshare (from ipython)
Running setup.py egg_info for package pickleshare
Downloading/unpacking simplegeneric>0.8 (from ipython)
Could not find a version that satisfies the requirement simplegeneric>0.8 (from ipython) (from versions: 0.5
, 0.6, 0.7, 0.8.1, 0.8)
No distributions matching the version for simplegeneric>0.8 (from ipython)
Storing complete log in C:\Users\Oskar\pip\pip.log
It says I need simplegeneric, but I already have it installed
This is my pip freeze log:
C:\big data\ipython-notebooks>pip freeze
(...)
ipython==1.1.0
(...)
pyzmq==14.7.0
(...)
simplegeneric==0.8.1
(...)
I'm using Python 2.7 and I have MS VC++ for Python installed
C:\big data\ipython-notebooks>python --version
Python 2.7.3
Update
Specifying version don't work, same with -U flag or without
C:\big data\ipython-notebooks>pip install ipython==3.2.1
Downloading/unpacking ipython==3.2.1
Running setup.py egg_info for package ipython
C:\Python27\lib\site-packages\setuptools\dist.py:284: UserWarning: The version specified requires normaliz
ation, consider using '4.0.0b1' instead of '4.0.0-b1'.
self.metadata.version,
Requested ipython==3.2.1, but installing version 4.0.0b1
Requirement already satisfied (use --upgrade to upgrade): decorator in c:\python27\lib\site-packages (from ipy
thon==3.2.1)
Downloading/unpacking pickleshare (from ipython==3.2.1)
Running setup.py egg_info for package pickleshare
Downloading/unpacking simplegeneric>0.8 (from ipython==3.2.1)
Could not find a version that satisfies the requirement simplegeneric>0.8 (from ipython==3.2.1) (from versio
ns: 0.5, 0.6, 0.7, 0.8.1, 0.8)
No distributions matching the version for simplegeneric>0.8 (from ipython==3.2.1)
Storing complete log in C:\Users\Oskar\pip\pip.log
Update 2
Pip version is 1.3.1
C:\big data\ipython-notebooks>pip --version
pip 1.3.1 from c:\python27\lib\site-packages (python 2.7)
Update of pip to newer version (from 1.3.1 to 7.1) helped
C:\big data\ipython-notebooks>python -m pip install --upgrade pip
Downloading/unpacking pip from https://pypi.python.org/packages/source/p/pip/pip-7.1.0.tar.gz#md5=d935ee914607
4b1d3f26c5f0acfd120e
Downloading pip-7.1.0.tar.gz (1.0MB): 1.0MB downloaded
Running setup.py egg_info for package pip
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching 'pip\_vendor\Makefile'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'dev-requirements.txt'
no previously-included directories found matching '.travis'
no previously-included directories found matching 'docs\_build'
no previously-included directories found matching 'contrib'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
Installing collected packages: pip
Found existing installation: pip 1.3.1
Uninstalling pip:
Successfully uninstalled pip
Running setup.py install for pip
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching 'pip\_vendor\Makefile'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'dev-requirements.txt'
no previously-included directories found matching '.travis'
no previously-included directories found matching 'docs\_build'
no previously-included directories found matching 'contrib'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
Installing pip-script.py script to C:\Python27\Scripts
Installing pip.exe script to C:\Python27\Scripts
Installing pip2.7-script.py script to C:\Python27\Scripts
Installing pip2.7.exe script to C:\Python27\Scripts
Installing pip2-script.py script to C:\Python27\Scripts
Installing pip2.exe script to C:\Python27\Scripts
Successfully installed pip
Cleaning up...
C:\big data\ipython-notebooks>pip --version
pip 7.1.0 from C:\Python27\lib\site-packages (python 2.7)
C:\big data\ipython-notebooks>pip install -U ipython==3.2.1
C:\Python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py:90: InsecurePlatformWarning:
A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may ca
use certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/secur
ity.html#insecureplatformwarning.
InsecurePlatformWarning
Collecting ipython==3.2.1
C:\Python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py:90: InsecurePlatformWarning:
A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may ca
use certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/secur
ity.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading ipython-3.2.1-py2-none-any.whl (3.4MB)
100% |################################| 3.4MB 82kB/s
Installing collected packages: ipython
Found existing installation: ipython 1.1.0
Uninstalling ipython-1.1.0:
Successfully uninstalled ipython-1.1.0
Successfully installed ipython-3.2.1

Resources