Hi, I am facing issues when I open my device_status.py file in python3. It throws errors and I am not able to identify those errors. Please help me to do so
Hi,
Can you be a little more elaborate? What kind of error are you getting? Can you share a screenshot or name the error?
What is the python version you are using? Because these errrors are faced by people using older python version. Upgrade your python version to 3.8 and try again
Hi @vijayolivefloor ,
Apologies for the delayed response. This error is faced in older versions of python like version 3.5. Kindly upgrade to Python 3.8 or higher. Check out this thread for more info on how to upgrade. Do let me know if you need any other help.
HI,
Follow these steps
sudo apt update
sudo apt install python3
Python 3 will be installed
If you are unable to solve the issue then we can connect over Zoom call and sort this out
I am able to download python 3, but the problem is I’m not able to download python 3.8, please help me to do so
sudo apt install python3.8
this should work
I tried it several times, but it’s not working. I am unable to solve this issue. Please help.
Hi @vijayolivefloor ,
You can build the python 3.8 from the source -
1.Install the python3.8 code
wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz
- Unzip the folder
tar xfz Python-3.8.0.tgz
cd Python-3.8.0/
Run the make and make install
make
sudo make install
You can check the python3.8 is installed on your system -
/usr/local/lib/python3.8.0/bin/python -V
Then you can create a virtual environment using python3.8 path.
virtualenv --python=/usr/local/lib/python3.8.0/bin/python .myenv
Activate your new virtual environment -
source .myenv/pin/activate
Do let me know in case you need any other information.
Check the error code - zlib not available
sudo apt-get install zlib1g-dev
After installing the above package, again do the
make
sudo make install
Do let me know in case you need any other information.
Please can you tell how to add a directory into a path?
Because it tells to add directory to path