Giter Site home page Giter Site logo

Comments (7)

singhniraj08 avatar singhniraj08 commented on August 16, 2024 1

@andysingal,

This issue is because of the reason that Colab has updated the python version to 3.10 and python 3.10 support for TFDV is still work in progress. Meanwhile we are working on Python 3.10 support for all TFX packages, we have introduced an workaround to run Colab tutorials as mentioned here.

You can refer this example gist for TFDV installation steps in Colab. Thank you!

from data-validation.

AdrienLemaire avatar AdrienLemaire commented on August 16, 2024

Getting the same issue with Qwiklabs "Introduction to TensorFlow Data Validation"

https://github.com/GoogleCloudPlatform/training-data-analyst

navigate to training-data-analyst > courses > machine_learning > deepdive2 > production_ml > labs, and open tfdv_basic_spending.ipynb.

The example gist for TFDV installation doesn't seem to work there

%%shell
update-alternatives
# !pip install tfx
%%shell
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 3
curl -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py

Result:

  Cell In[13], line 3
    update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 3
                                                   ^
SyntaxError: invalid syntax

from data-validation.

singhniraj08 avatar singhniraj08 commented on August 16, 2024

@AdrienLemaire, This workaround is specific to Colab notebooks where we downgrade the python version in colab runtime. I am not sure if this workaround will work on other platforms. You can try running the notebooks in Colab environment or downgrade the Python version to 3.9 in your environment meanwhile we work on introducing python 3.10 support.
Thank you!

from data-validation.

andysingal avatar andysingal commented on August 16, 2024

But isn't downloading python version a temporary workaround?. I hope you can also update your documentation.

from data-validation.

singhniraj08 avatar singhniraj08 commented on August 16, 2024

@andysingal,

TFX tutorials is updated with Caution section to inform users about the issue and the temporary workaround. Thanks.

from data-validation.

singhniraj08 avatar singhniraj08 commented on August 16, 2024

@andysingal,

Python 3.10 support is introduced in TFDV 1.14.0 release. Please let us know if you face any issues in TFDV installation. Thank you!

from data-validation.

singhniraj08 avatar singhniraj08 commented on August 16, 2024

Closing this due to inactivity. Please take a look into the answers provided above, feel free to reopen and post your comments(if you still have queries on this). Thank you!

from data-validation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.