Skip to content

ImportError: cannot import name '_Task' from 'pp'  #706

Open
@QuantumFall

Description

@QuantumFall

Hi all,

I am getting the error message above when trying to do import tensorflow_quantum as tfq and I'm not really sure how to resolve it.

The full error message is:

ImportError: cannot import name 'Task' from 'pp' (C:\Users\MyUsername\AppData\Local\Continuum\anaconda3\envs\tf\lib\site-packages\pp_init.py)

I currently have TF and TFQ installed in a conda virtual environment with Python 3.7.13. TF and TFQ were installed using Pip according to these instructions: https://github.com/tensorflow/quantum/blob/master/docs/install.md

I'm not sure if it's related but doing "conda list" shows tensorflow as version 2.4.1 but doing the following in jupyter notebook returns 2.7.0.

import tensorflow as tf
tf.__version__

Any help would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/installationConcerns installation of TFQkind/bug-reportSomething doesn't seem to workstatus/going-staleHas been inactive for a while and may be closed soon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions