Closed IcyFeather233 closed 6 months ago
Try the solution in this link. Besides that, if you just want to run an example of Ianvs, it's more recommended for you to try the lifelong learning example.
Thanks so much! It works, and I will try the lifelong learning example.
This is actually the python version problem
run wheel unpack examples/resources/algorithms/FPN_TensorFlow-0.1-py3-none-any.whl
(about wheel unpack/pack, see details)to unpack the whl file, we can find in METADATA
, it reads:
Metadata-Version: 2.1
Name: FPN-TensorFlow
Version: 0.1
Summary: FPN TensorFlow Algorithm
Home-page: https://github.com/kubeedge-sedna/FPN_Tensorflow
Author: FPN_TensorFlow
Author-email: pujie2@huawei.com
Maintainer: FPN_TensorFlow
Maintainer-email:
License: Apache License 2.0
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: POSIX :: Linux
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: wheel (~=0.36.2)
Requires-Dist: libs (~=0.0.10)
Requires-Dist: tensorflow (~=1.14.0)
Requires-Dist: matplotlib (~=3.3.4)
Requires-Dist: Pillow (~=8.1.1)
Requires-Dist: tqdm (~=4.62.3)
Requires-Dist: dataclasses (~=0.8)
Requires-Dist: zipp (~=3.6.0)
The FPN_TensorFlow-0.1-py3-none-any.whl package needs tensorflow 1.14.0, however, as show in https://pypi.org/project/tensorflow/1.14.0/#files, the tensorflow 1.14.0 only supports python verstion upto 3.7, so downgrade the python version is ok for this problem.
And if you use python3.7, you may meet another problem as below:
ERROR: Ignored the following versions that require a different python version: 0.43.0 Requires-Python >=3.8; 0.7 Requires-Python >=3.6, <3.7; 0.8 Requires-Python >=3.6, <3.7; 10.0.0 Requires-Python >=3.8; 10.0.1 Requires-Python >=3.8; 10.1.0 Requires-Python >=3.8; 10.2.0 Requires-Python >=3.8; 10.3.0 Requires-Python >=3.8; 3.6.0 Requires-Python >=3.8; 3.6.0rc1 Requires-Python >=3.8; 3.6.0rc2 Requires-Python >=3.8; 3.6.1 Requires-Python >=3.8; 3.6.2 Requires-Python >=3.8; 3.6.3 Requires-Python >=3.8; 3.7.0 Requires-Python >=3.8; 3.7.0rc1 Requires-Python >=3.8; 3.7.1 Requires-Python >=3.8; 3.7.2 Requires-Python >=3.8; 3.7.3 Requires-Python >=3.8; 3.7.4 Requires-Python >=3.8; 3.7.5 Requires-Python >=3.8; 3.8.0 Requires-Python >=3.9; 3.8.0rc1 Requires-Python >=3.9; 3.8.1 Requires-Python >=3.9; 3.8.2 Requires-Python >=3.9; 3.8.3 Requires-Python >=3.9; 3.8.4 Requires-Python >=3.9; 3.9.0 Requires-Python >=3.9; 3.9.0rc2 Requires-Python >=3.9
ERROR: Could not find a version that satisfies the requirement dataclasses~=0.8 (from fpn-tensorflow) (from versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6)
ERROR: No matching distribution found for dataclasses~=0.8
This is because python3.7 doesn't need dataclasses0.8:
We can delete Requires-Dist: dataclasses (~=0.8)
this line in METADATA
and re-pack the whl:
wheel pack --build-number 2 FPN_TensorFlow-0.1
and get a new FPN_TensorFlow-0.1-2-py3-none-any.whl file, for me, it is successfully installed in python 3.7 env.
Conclusion:
You can use python 3.7 to install this algorithm whl package, but you need to change it a little, unpack the whl and delete the dataclasses line, and re-pack it, you can install it successfully.
I think this should be added to the docs, because this is in QuickStart (for me it's not quick at all haha), and now many people use python>3.8, so this info will be useful for a lot.
This is actually the python version problem
run
wheel unpack examples/resources/algorithms/FPN_TensorFlow-0.1-py3-none-any.whl
(about wheel unpack/pack, see details)to unpack the whl file, we can find inMETADATA
, it reads:Metadata-Version: 2.1 Name: FPN-TensorFlow Version: 0.1 Summary: FPN TensorFlow Algorithm Home-page: https://github.com/kubeedge-sedna/FPN_Tensorflow Author: FPN_TensorFlow Author-email: pujie2@huawei.com Maintainer: FPN_TensorFlow Maintainer-email: License: Apache License 2.0 Platform: UNKNOWN Classifier: Programming Language :: Python :: 3 Classifier: License :: OSI Approved :: Apache Software License Classifier: Operating System :: POSIX :: Linux Requires-Python: >=3.6 Description-Content-Type: text/markdown Requires-Dist: wheel (~=0.36.2) Requires-Dist: libs (~=0.0.10) Requires-Dist: tensorflow (~=1.14.0) Requires-Dist: matplotlib (~=3.3.4) Requires-Dist: Pillow (~=8.1.1) Requires-Dist: tqdm (~=4.62.3) Requires-Dist: dataclasses (~=0.8) Requires-Dist: zipp (~=3.6.0)
The FPN_TensorFlow-0.1-py3-none-any.whl package needs tensorflow 1.14.0, however, as show in https://pypi.org/project/tensorflow/1.14.0/#files, the tensorflow 1.14.0 only supports python verstion upto 3.7, so downgrade the python version is ok for this problem.
And if you use python3.7, you may meet another problem as below:
ERROR: Ignored the following versions that require a different python version: 0.43.0 Requires-Python >=3.8; 0.7 Requires-Python >=3.6, <3.7; 0.8 Requires-Python >=3.6, <3.7; 10.0.0 Requires-Python >=3.8; 10.0.1 Requires-Python >=3.8; 10.1.0 Requires-Python >=3.8; 10.2.0 Requires-Python >=3.8; 10.3.0 Requires-Python >=3.8; 3.6.0 Requires-Python >=3.8; 3.6.0rc1 Requires-Python >=3.8; 3.6.0rc2 Requires-Python >=3.8; 3.6.1 Requires-Python >=3.8; 3.6.2 Requires-Python >=3.8; 3.6.3 Requires-Python >=3.8; 3.7.0 Requires-Python >=3.8; 3.7.0rc1 Requires-Python >=3.8; 3.7.1 Requires-Python >=3.8; 3.7.2 Requires-Python >=3.8; 3.7.3 Requires-Python >=3.8; 3.7.4 Requires-Python >=3.8; 3.7.5 Requires-Python >=3.8; 3.8.0 Requires-Python >=3.9; 3.8.0rc1 Requires-Python >=3.9; 3.8.1 Requires-Python >=3.9; 3.8.2 Requires-Python >=3.9; 3.8.3 Requires-Python >=3.9; 3.8.4 Requires-Python >=3.9; 3.9.0 Requires-Python >=3.9; 3.9.0rc2 Requires-Python >=3.9 ERROR: Could not find a version that satisfies the requirement dataclasses~=0.8 (from fpn-tensorflow) (from versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6) ERROR: No matching distribution found for dataclasses~=0.8
This is because python3.7 doesn't need dataclasses0.8:
We can delete
Requires-Dist: dataclasses (~=0.8)
this line inMETADATA
and re-pack the whl:wheel pack --build-number 2 FPN_TensorFlow-0.1
and get a new FPN_TensorFlow-0.1-2-py3-none-any.whl file, for me, it is successfully installed in python 3.7 env.
Conclusion:
You can use python 3.7 to install this algorithm whl package, but you need to change it a little, unpack the whl and delete the dataclasses line, and re-pack it, you can install it successfully.
I think this should be added to the docs, because this is in QuickStart (for me it's not quick at all haha), and now many people use python>3.8, so this info will be useful for a lot.
Good job!
What happened:
I am following QuickStart Guide to install the env, when I run this as the guide reads:
it shows:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?: