Can somebody please provided recommended commands for Ubuntu 18.04 to configure a Python virtual environment that has Python 3.7.x or 3.8.x?
Of course I'm aware that upgrading the general Ubuntu 18.04 Python install past 3.6.9 (the current Ubuntu 18.04 Python version if all updates have been done) could have disastrous consequences for many other OS functionalities so of course this is not something I'd like to try.
If you're wondering, I need access to some of the asyncio
functionality for a WebSockets application that has been introduced after Python 3.6.9.
This post hints at how to do it, but it's very old and does not provide complete instructions. Also I'm unclear on venv
vs virtualenv
.
Please see this site because it has good instructions on setting up virtualenv on Ubuntu 18.04.
In the .bashrc I had to enter: