Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not able to import tensorflow-quantum after installing tensorflow==2.11.0 ,tensorflow-quantum==0.7.2 in python==3.8.18 and importing tensorflow==2.11.0 in google colab #807

Open
Murad460 opened this issue Feb 26, 2024 · 2 comments

Comments

@Murad460
Copy link

Murad460 commented Feb 26, 2024

change python version using this code

!apt-get update -y
!apt-get install python3.8 python3.8-distutils -y
!update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
!update-alternatives --config python3

from IPython.display import clear_output
clear_output()

for pip install

!apt-get install python3-pip
!python3 -m pip install --upgrade pip --user
!python --version

@Murad460 Murad460 changed the title not able to import tensorflow-quantum after installing and importing tensorflow==2.11.0 in python==3.8.18 and tensorflow-quantum in google colab not able to import tensorflow-quantum after installing tensorflow==2.11.0 in python==3.8.18 ,tensorflow-quantum and importing tensorflow==2.11.0 in google colab Feb 26, 2024
@Murad460 Murad460 changed the title not able to import tensorflow-quantum after installing tensorflow==2.11.0 in python==3.8.18 ,tensorflow-quantum and importing tensorflow==2.11.0 in google colab not able to import tensorflow-quantum after installing tensorflow==2.11.0 ,tensorflow-quantum in python==3.8.18 and importing tensorflow==2.11.0 in google colab Feb 26, 2024
@Murad460 Murad460 changed the title not able to import tensorflow-quantum after installing tensorflow==2.11.0 ,tensorflow-quantum in python==3.8.18 and importing tensorflow==2.11.0 in google colab not able to import tensorflow-quantum after installing tensorflow==2.11.0 ,tensorflow-quantum==0.7.2 in python==3.8.18 and importing tensorflow==2.11.0 in google colab Feb 26, 2024
@bhawna759
Copy link

After running above code and then trying to install tensorflow-quantum
Getting below error
Collecting tensorflow-quantum
Using cached tensorflow_quantum-0.7.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.metadata (1.8 kB)
Requirement already satisfied: cirq-core==0.13.1 in /usr/local/lib/python3.8/dist-packages (from tensorflow-quantum) (0.13.1)
Requirement already satisfied: cirq-google>=0.13.1 in /usr/local/lib/python3.8/dist-packages (from tensorflow-quantum) (0.13.1)
Requirement already satisfied: sympy==1.8 in /usr/local/lib/python3.8/dist-packages (from tensorflow-quantum) (1.8)
Requirement already satisfied: googleapis-common-protos==1.52.0 in /usr/local/lib/python3.8/dist-packages (from tensorflow-quantum) (1.52.0)
Requirement already satisfied: google-api-core==1.21.0 in /usr/local/lib/python3.8/dist-packages (from tensorflow-quantum) (1.21.0)
Requirement already satisfied: google-auth==1.18.0 in /usr/local/lib/python3.8/dist-packages (from tensorflow-quantum) (1.18.0)
Requirement already satisfied: protobuf==3.17.3 in /usr/local/lib/python3.8/dist-packages (from tensorflow-quantum) (3.17.3)
Requirement already satisfied: duet~=0.2.0 in /usr/local/lib/python3.8/dist-packages (from cirq-core==0.13.1->tensorflow-quantum) (0.2.8)
Requirement already satisfied: matplotlib~=3.0 in /usr/local/lib/python3.8/dist-packages (from cirq-core==0.13.1->tensorflow-quantum) (3.7.5)
Requirement already satisfied: networkx~=2.4 in /usr/local/lib/python3.8/dist-packages (from cirq-core==0.13.1->tensorflow-quantum) (2.8.8)
Requirement already satisfied: numpy~=1.16 in /usr/local/lib/python3.8/dist-packages (from cirq-core==0.13.1->tensorflow-quantum) (1.24.4)
Requirement already satisfied: pandas in /usr/local/lib/python3.8/dist-packages (from cirq-core==0.13.1->tensorflow-quantum) (2.0.3)
Requirement already satisfied: scipy in /usr/local/lib/python3.8/dist-packages (from cirq-core==0.13.1->tensorflow-quantum) (1.10.1)
Requirement already satisfied: sortedcontainers~=2.0 in /usr/local/lib/python3.8/dist-packages (from cirq-core==0.13.1->tensorflow-quantum) (2.4.0)
Requirement already satisfied: tqdm in /usr/local/lib/python3.8/dist-packages (from cirq-core==0.13.1->tensorflow-quantum) (4.66.2)
Requirement already satisfied: typing-extensions in /usr/local/lib/python3.8/dist-packages (from cirq-core==0.13.1->tensorflow-quantum) (4.10.0)
Requirement already satisfied: requests<3.0.0dev,>=2.18.0 in /usr/local/lib/python3.8/dist-packages (from google-api-core==1.21.0->tensorflow-quantum) (2.31.0)
Requirement already satisfied: setuptools>=34.0.0 in /usr/lib/python3/dist-packages (from google-api-core==1.21.0->tensorflow-quantum) (59.6.0)
Requirement already satisfied: six>=1.10.0 in /usr/lib/python3/dist-packages (from google-api-core==1.21.0->tensorflow-quantum) (1.16.0)
Requirement already satisfied: pytz in /usr/local/lib/python3.8/dist-packages (from google-api-core==1.21.0->tensorflow-quantum) (2024.1)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in /usr/local/lib/python3.8/dist-packages (from google-auth==1.18.0->tensorflow-quantum) (4.2.4)
Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/local/lib/python3.8/dist-packages (from google-auth==1.18.0->tensorflow-quantum) (0.3.0)
Requirement already satisfied: rsa<5,>=3.1.4 in /usr/local/lib/python3.8/dist-packages (from google-auth==1.18.0->tensorflow-quantum) (4.9)
Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.8/dist-packages (from sympy==1.8->tensorflow-quantum) (1.3.0)
Requirement already satisfied: grpcio<2.0dev,>=1.29.0 in /usr/local/lib/python3.8/dist-packages (from google-api-core[grpc]<2.0.0dev,>=1.14.0->cirq-google>=0.13.1->tensorflow-quantum) (1.62.1)
Requirement already satisfied: contourpy>=1.0.1 in /usr/local/lib/python3.8/dist-packages (from matplotlib~=3.0->cirq-core==0.13.1->tensorflow-quantum) (1.1.1)
Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.8/dist-packages (from matplotlib~=3.0->cirq-core==0.13.1->tensorflow-quantum) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.8/dist-packages (from matplotlib~=3.0->cirq-core==0.13.1->tensorflow-quantum) (4.49.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.8/dist-packages (from matplotlib~=3.0->cirq-core==0.13.1->tensorflow-quantum) (1.4.5)
Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.8/dist-packages (from matplotlib~=3.0->cirq-core==0.13.1->tensorflow-quantum) (23.2)
Requirement already satisfied: pillow>=6.2.0 in /usr/local/lib/python3.8/dist-packages (from matplotlib~=3.0->cirq-core==0.13.1->tensorflow-quantum) (10.2.0)
Requirement already satisfied: pyparsing>=2.3.1 in /usr/local/lib/python3.8/dist-packages (from matplotlib~=3.0->cirq-core==0.13.1->tensorflow-quantum) (3.1.2)
Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.8/dist-packages (from matplotlib~=3.0->cirq-core==0.13.1->tensorflow-quantum) (2.9.0.post0)
Requirement already satisfied: importlib-resources>=3.2.0 in /usr/local/lib/python3.8/dist-packages (from matplotlib~=3.0->cirq-core==0.13.1->tensorflow-quantum) (6.1.3)
Requirement already satisfied: pyasn1<0.6.0,>=0.4.6 in /usr/local/lib/python3.8/dist-packages (from pyasn1-modules>=0.2.1->google-auth==1.18.0->tensorflow-quantum) (0.5.1)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.8/dist-packages (from requests<3.0.0dev,>=2.18.0->google-api-core==1.21.0->tensorflow-quantum) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.8/dist-packages (from requests<3.0.0dev,>=2.18.0->google-api-core==1.21.0->tensorflow-quantum) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.8/dist-packages (from requests<3.0.0dev,>=2.18.0->google-api-core==1.21.0->tensorflow-quantum) (2.2.1)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.8/dist-packages (from requests<3.0.0dev,>=2.18.0->google-api-core==1.21.0->tensorflow-quantum) (2024.2.2)
Requirement already satisfied: tzdata>=2022.1 in /usr/local/lib/python3.8/dist-packages (from pandas->cirq-core==0.13.1->tensorflow-quantum) (2024.1)
Requirement already satisfied: zipp>=3.1.0 in /usr/local/lib/python3.8/dist-packages (from importlib-resources>=3.2.0->matplotlib~=3.0->cirq-core==0.13.1->tensorflow-quantum) (3.17.0)
Using cached tensorflow_quantum-0.7.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (10.5 MB)
Installing collected packages: tensorflow-quantum
Successfully installed tensorflow-quantum-0.7.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

@lockwo
Copy link
Contributor

lockwo commented Mar 9, 2024

#805 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants