1.0.7-py2.py3-none-any.whl (51kB) 100% |████████████████████████████████| 61kB 3.1MB/s Collecting absl-py from protobuf>=3.6.1->tensorflow) (40.8.0) Building wheels for collected packages: gast, termcolor, absl-py Local\pip\Cache\wheels\15\b4\7c\713366bcd4e4f6d38377a66e0742bd15e6920b1939be008dbb Building wheel for absl-py wheels\85\02\e5\139c27ec57828631565111db6facbddd0eb13bf73e1764e8c0 Successfully built gast termcolor absl-py Installing collected packages: keras-preprocessing, protobuf, markdown, grpcio, absl-py, tensorboard
opt/anaconda3/lib/python3.6/site-packages (from tensorflow) (1.10.0) Requirement already satisfied: absl-py 0ae6092b7542cfedba6b2a1c9b8dceaf278238c39484f3ba03b03f07803c/tensorboard-1.8.0-py3-none-any.whl Requirement already satisfied: absl-py python3.6/site-packages Requires: termcolor, astor, protobuf, gast, six, tensorboard, wheel, numpy, grpcio, absl-py
Stable_Diffusion_PaperCut_Model 安装依赖 pip install torch typing_extensions numpy Pillow requests pytorch_lightning absl-py
1.0.6-py2.py3-none-any.whl (44kB) 100% |████████████████████████████████| 51kB 4.2MB/s Collecting absl-py ███████████████████████████| 2.3MB 1.5MB/s Building wheels for collected packages: gast, termcolor, absl-py wheels\7c\06\54\bc84598ba1daf8f970247f550b175aaaee85f68b4b0c5ab2c6 Running setup.py bdist_wheel for absl-py wheels\18\ea\5e\e36e1b8739e78cd2eba0a08fdc602c2b16a4b263912af8cb64 Successfully built gast termcolor absl-py markdown, grpcio, protobuf, tensorboard, keras-preprocessing, termcolor, astor, h5py, keras-applications, absl-py
protobuf>=3.14.0 Downloading protobuf-3.15.6-cp37-cp37m-manylinux1_x86_64.whl (1.0 MB) Collecting absl-py none-any.whl (129 kB) Requirement already satisfied: six in /usr/local/lib/python3.7/site-packages (from absl-py >=0.11->ortools) (1.15.0) Installing collected packages: protobuf, absl-py, ortools Successfully installed
xdeepfm python=3.6 conda activate xdeepfm pip install -r requirements.txt python main.py Dependencies absl-py
protobuf>=3.14.0 Downloading protobuf-3.15.6-cp37-cp37m-manylinux1_x86_64.whl (1.0 MB) Collecting absl-py none-any.whl (129 kB) Requirement already satisfied: six in /usr/local/lib/python3.7/site-packages (from absl-py >=0.11->ortools) (1.15.0) Installing collected packages: protobuf, absl-py, ortools Successfully installed
the major changes include removing tf.app, tf.flags, and tf.logging in favor of the now open-source absl-py
matplotlib包:conda install matplotlib 如果出现错误:ModuleNoFoundError:No module named 'absl' 安装absl包:conda install absl-py
-force "$libs/numpy-1.18.5-cp38-cp38-macosx_11_0_arm64.whl" # 安装相关库 conda install -c conda-forge -y absl-py
NEW packages will be INSTALLED: _tflow_select anaconda/linux-64::_tflow_select-2.3.0-mkl absl-py
the major changes include removing tf.app, tf.flags, and tf.logging in favor of the now open-source absl-py
pypi.tuna.tsinghua.edu.cn/simple 安装完成后,查看依赖包列表如下所示: Package Version ----------------------- -------- absl-py
------------------- -ip 20.1 a2x 0.0.3 absl-py
listPackage Version ---------------------------------- ----------------- absl-py
Build Channel _tflow_select 2.1.0 gpu defaults absl-py
一些主要的变化包括删除tf.app,tf.flags与 tf.logging,支持开源的 absl-py(Google自己的Python代码库)。
absl-py GitHub:https://github.com/abseil/abseil-py 个人感觉比 argparse 更易用的库,如 TensorFlow 就在使用这个,对于定义一些 Flag
.venv/bin/activate# 切换到指定版本(如 v3.0.1)git checkout v3.0.1# 安装依赖(指定版本以保证兼容性)python3.11 -m pip install absl-py
pip sudo apt-get install zlib1g-dev zip libjpeg8-dev libhdf5-dev sudo pip3 install -U numpy grpcio absl-py