nicknochnack / TFODCourse

944 stars 919 forks source link

Too Many "DEPRICATED" Errors Running This In 2024 #157

Open sujirou opened 5 months ago

sujirou commented 5 months ago

would anyone at least tell us this course is no longer usable? that way we can move on? i've raised a few question in here too: https://github.com/nicknochnack/GenerateTFRecord/issues/5

sujirou commented 5 months ago

here are a few:

when running !pip install tensorflow --upgrade, this are some of the errors:

absl_py-2.1.0-py3.11.egg is deprecated
apache_beam-2.54.0rc1-py3.11-win-amd64.egg is deprecated
dm_tree-0.1.8-py3.11-win-amd64.egg is deprecated
h5py-3.10.0-py3.11-win-amd64.egg is deprecated

it suggested following this link but it's no use https://github.com/pypa/pip/issues/12330

sujirou commented 5 months ago

https://prnt.sc/bXYGKUHaQyhd

said-ml commented 5 months ago

it seem that uses the old versions that are not supported anymore run this command: pip install --upgrade absl-py apache-beam dm-tree h5py

ikwyl6 commented 4 months ago

@said-ml when I try that I get error: externally-managed-environment and more verbiage how I should install:

_ This environment is externally managed
_─> To install Python packages system-wide, try 'pacman -S
    python-xyz', where xyz is the package you are trying to
    install.                                                                                             

    If you wish to install a non-Arch-packaged Python package,
    create a virtual environment using 'python -m venv path/to/venv'.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip.

    If you wish to install a non-Arch packaged Python application,
    it may be easiest to use 'pipx install xyz', which will manage a
    virtual environment for you. Make sure you have python-pipx
    installed via pacman.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-syst
em-packages.
hint: See PEP 668 for the detailed specification.

Do you have any suggestions on how I can remove these pkgs and re-install? thanks for any help for pip newbie.

said-ml commented 4 months ago

#in your terminal command-line type
pacman -S  python-package_name
#Create a Virtual Environment:
python -m venv path/to/venv
#Use pipx to install a non-Arch packaged Python:
pipx install package_name
# if you want to remove the packages try 
--break-system-packages
# but be cautious