protocolbuffers / protobuf

Protocol Buffers - Google's data interchange format
http://protobuf.dev
Other
65.78k stars 15.52k forks source link

i dont know to handle the problem that "protobuf requires Python '>=3.7' but the running Python is 3.6.9" #10250

Closed 1027743011 closed 2 years ago

1027743011 commented 2 years ago

Hi, i want to install ### bosdyn-client bosdyn-mission bosdyn-api bosdyn-core in ubuntu 18.04, so i use the command ### pip3 install bosdyn-client bosdyn-mission bosdyn-api bosdyn-core , the terminal will output ### protobuf requires Python '>=3.7' but the running Python is 3.6.9 . i have noticed that someone said protobuf 4.21.0 have already fixed the problem , but when i used ### protobuf-4.21.0-py2.py3-none-any.whl to pip install , the problem will occur again. so what did i do for handle this question thanks

acozzette commented 2 years ago

You can stick with protobuf 3.19.4 if you need to keep Python 3.6 support. Python 3.6 reached its end-of-life in December and is no longer getting security updates though, so you might want to consider upgrading your Python version soon if you can.

brenopenia1 commented 1 week ago

Note: The following steps might take a bit of time. These packages are said to be successfully installed if the console displays any message like Successfully installed ... after each package installation.

Update the pip package manager.

pip install --upgrade pip Install the Flask package of version 1.1.2 as follows. Use the following command in the console.

pip install Flask==1.1.2 Install the tensorflow package of version 1.14.0 as follows.

python -m pip install --upgrade setuptools

pip install protobuf==3.17.3

pip install --no-cache-dir --force-reinstall -I grpcio==1.11.0

pip install tensorflow==1.14.0 Install the pillow package of version 6.2.2 as follows, for working with images(like loading the images which we would see later).

pip install pillow==6.2.2