What is causing pip's dependency resolver issue for installing Streamlit? - python-3.x

I've installed Streamlit package on my Macbook M1 but the following error was prompted after the pip install under Python 3.9.7. I am not successful in launching the streamlit using the URL link. Can anyone advise how to resolve the following issue?
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tensorflow-macos 2.5.0 requires numpy~=1.19.2, but you have numpy 1.23.4 which is incompatible.
tensorflow-macos 2.5.0 requires typing-extensions~=3.7.4, but you have typing-extensions 4.4.0 which is incompatible.
scipy 1.7.3 requires numpy<1.23.0,>=1.16.5, but you have numpy 1.23.4 which is incompatible.

Related

Problem in importing tensorflow_data_validation

I tried to import and use the tensorflow_data_validation library, but I faced this error:
ContextualVersionConflict: (google-api-core 1.25.1 (c:\users\amoosi\anaconda3\lib\site-packages), Requirement.parse('google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5'), {'google-cloud-bigquery-storage'})
I'm using Python 3.9.12
The error is telling you that the package google-api-core has a version conflict with the package google-cloud-bigquery-storage.
The current installed version of google-api-core is 1.25.1, and the error is giving you a list of the accepted versions, which are above the one that you have.
To update type this in a terminal:
pip install --upgrade google-api-core

When installing Python 3: pip3 install googleanalytics an error appears

When I'm installing googleanalytics I get the error (https://pypi.org/project/googleanalytics/)
How to resolve this problem?
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pandas 1.4.2 requires python-dateutil>=2.8.1, but you have python-dateutil 1.5 which is incompatible.
matplotlib 3.4.3 requires python-dateutil>=2.7, but you have python-dateutil 1.5 which is incompatible.

Installing requirements.txt into virtual environment

I have a directory with scripts *.py that I need to compile on another computer that includes different versions of modules. I opened the terminal in that directory and have created requirements:
pip freeze > requirements.txt
Then I created a vertual environment and tried to installed packages from requirements.txt
virtualenv compilation
source compilation/bin/activate
python3.6 -m pip install -r requirements.txt
It ended with this:
ERROR: Cannot install babel==2.7.0, gitsome==0.8.4 and pytz==2021.1 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested pytz==2021.1
babel 2.7.0 depends on pytz>=2015.7
gitsome 0.8.4 depends on pytz<2017.0 and >=2016.3
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
Why is there a conflict when these packages work in non-virtual python3.6, please? What to do with that, please?
After babel and gitsome upgrade
ERROR: Cannot install babel==2.7.0, gitsome==0.8.4, pandas==1.1.5 and pytz==2016.10 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested pytz==2016.10
babel 2.7.0 depends on pytz>=2015.7
gitsome 0.8.4 depends on pytz<2017.0 and >=2016.3
pandas 1.1.5 depends on pytz>=2017.2
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
Downgrading pytz
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pandas 1.1.5 requires pytz>=2017.2, but you have pytz 2015.7 which is incompatible.
gitsome 0.8.4 requires pytz<2017.0,>=2016.3, but you have pytz 2015.7 which is incompatible.
Successfully installed pytz-2016.10
Removed build tracker: '/tmp/pip-req-tracker-8c5_ezeo'
You may want to try downgrading pytz
pip install -Iv pytz==2017.0
or upgrading babel and gitsome
sudo pip install babel --upgrade
sudo pip install gitsome --upgrade

Problems when trying to install tensorflow

I am trying to install tensorflow by using "!pip install tensorflow"(on python 3.8) but what I get is the following error message:
tf-nightly 2.5.0.dev20210102 requires grpcio~=1.34.0, but you'll have grpcio 1.32.0 which is incompatible.
tf-nightly 2.5.0.dev20210102 requires h5py~=3.1.0, but you'll have h5py 2.10.0 which is incompatible.
tf-nightly-gpu 2.5.0.dev20210102 requires grpcio~=1.34.0, but you'll have grpcio 1.32.0 which is incompatible.
tf-nightly-gpu 2.5.0.dev20210102 requires h5py~=3.1.0, but you'll have h5py 2.10.0 which is incompatible.
How can I solve this problem?
Have you already installed tf-nightly if not then do it using pip install tf-nightlya nd then pip install grpcio. The error itself clarifies that it needs the updated version of grpcio (requires grpcio~=1.34.0, but you'll have grpcio 1.32.0 which is incompatible).Follow this link to get complete details of the process to install TensorFlow.
you should pip install grpcio==1.34.0 at first, i think it is better treat '~=' as '=='

mystic 0.3.3 has requirement numpy<1.16.0,>=1.0, but you'll have numpy 1.16.2 which is incompatible

I'm using python 3.7 on my windows 10 system.I'm trying to install library reuqests. So I used following code
pip install requests
I got the error message
mystic 0.3.3 has requirement numpy<1.16.0,>=1.0, but you'll have numpy 1.16.2 which is incompatible.
Can you suggest me how to resolve this issue?
I got same issue during fastai package installation, uninstalled numpy and installing mystic package using anaconda prompt fixed the issue
pip uninstall numpy
pip install mystic

Resources