Managing python versions
- netznana
- Oct 7, 2020
- 1 min read
Python is one of the most popular programming language available today. I am new to the data science field. However, during the short life span in data science that I have experienced so far, I am glad to have this python as my good friend to help me to analyze data.
The problem with Python though is how fast it is updating. I have struggled with this issue since I had codes from Python 2 that were not compatible with Python 3 anymore. The solutions in this situation is simple.
Downgrade your Python
Update your code
Which one to chose? That depends on the context. In my case, the codes from Python 2 were not too long to manually adjust the old packages with the new. However, if this is not an option for you, better downgrade your Python. If you can create or have access to multiple virtual environments, then you can have both Python 2 and 3 installed.
留言