I've just upgraded to Ubuntu 20.04. I was working with a python 3.7 project using Django inside a virtual environment, so I was confident even with the upgraded distro (which involved the installation of python 3.8) my venv would still worked. Unfortunately, that's not the case: when I activate my venv, the interpreter of python is still the 3.8 version, and nothing works. python 3.7 is completely missing. What can I do to restore my project?
python 3.7 venv broken after upgrade to Ubuntu 20.04
6.6k views Asked by dcfg At
3
There are 3 answers
0
churcht
On
When this happened to me, rather than delete venv, I moved it to venv.broken, then installed the new venv. The advantage (for me) in doing it this way was when it came to installing the requirements. I subsequently found out that my requirements.txt was missing some important packages. By examining the site_packages directory in venv.broken it was possible to figure out what was missing.
Related Questions in PYTHON-3.X
- SQLAlchemy 2 Can't add additional column when specifying __table__
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Platform Generation for a Sky Hop clone
- What's the best way to breakup a large test in pytest
- chess endgame engine in Python doesn't work perfectly
- Function to create matrix of zeros and ones, with a certain density of ones
- how to create a polars dataframe giving the colum-names from a list
- Django socketio process
- How to decode audio stream using tornado websocket?
- Getting website metadata (Excel VBA/Python)
- How to get text and other elements to display over the Video in Tkinter?
- Tkinter App - My Toplevel window is not appearing. App is stuck in mainloop
- Can I use local resources for mp4 playback?
- How to pass the value of a function of one class to a function of another with the @property decorator
- Python ModuleNotFoundError for command line tools built with setup.py
Related Questions in OPERATING-SYSTEM
- the end of the I/O operation is notified to the system by an interrupt.how much system time do the mentioned operations occupy?
- Problem on CPU scheduling algorithms in OS
- OS-wide text autocomplete service with popup
- mkssecreenshotmgr taking a screenshot
- How to prevent app from crashing on android emulator
- Is there a function to end a child process?
- Swapping a healthy and unallocated partition in Windows 10
- ubuntu OS : Why my battery is completely drained of in just 2 hours in suspend mode
- 1 filenames = [] 2 ----> 3 for file in os.zipfile('images.zip'):
- Worth it to access data by blocks on modern OS/hardware?
- How does outlook disable screenshot
- How can I enable my app to access a specific partition directory for reading and writing without showing popup to user?
- Exception of type 'System.Exception' was thrown. Error in Cosmos Project
- Maximum CPU Voltage reading
- Java: get username from uid
Related Questions in UPGRADE
- Problem on upgrading Laravel 9 to Laravel 10
- Insight: Deprecated APIs removed in Kubernetes v1.29
- Upgraded C# MVC project EF 4.7.2 to .net Core 8.0
- Cannot upgrade to syncElegantOTA v3 in platformIO
- How to export Parties and Agreements from BizTalk Server 2013 R2?
- ModuleNotFoundError after upgrade
- getTypeName method when updating from Hibernate core v5 to v6
- Missing Private Key after updating Node
- How to change height and width in mat-form-field
- C# WPF Menu no longer works after upgrade project to SDK style
- Symfony AssertionError: assert($mapping instanceof ManyToManyOwningSideMapping)
- Service.startForeground() issue in Android 14
- Compatibility Problem after Update from Xamarin.Forms to .Net MAUI
- How to solve Jenkins 2.361.4 start with ProjectMatrixAuthorizationStrategy error?
- TYPO3 v11: upgrade to PHP8 breaks the page completely
Related Questions in PYTHON-VENV
- How to change default Python version for poetry?
- start-stop script for this venv webserver is not working
- Neural A* enviroment installation
- Setting VENV for Flask app where to create my files
- Other reasons why python venv is not working apart from ExecutionPolicy
- Trouble Connecting Django Application to PostgreSQL Database Running in Docker Container
- MACOS - No module named 'mmcv._ext'
- import paho.mqtt.client as PahoMQTT, ModuleNotFoundError: No module named 'paho'
- Trying to install Scipy on my virtual environment
- How can I distribute a Python application into an empty environment?
- How can I fix the messed up python package environment of my laptop?
- Python virtualenv on MacOS apparently not activated
- Virtual environment error: "The term 'source' is not recognized as the name of a cmdlet ..."
- Global Packages in Pip List When Virtual Environment Activated
- Drawbacks of system-site-packages?
Related Questions in LINUX-DISTRO
- Error "error: load the kernel first" in PrimeOS. How to fix this error?
- Adding default layers as dependencies to the yocto meta layer
- Overriding the variable in distro.conf config file in custom image recipe yocto
- Does VLC use different binaries for various Linux distributions?
- WSL 2: Docker wont launch "The parameter is incorrect." (Windows Insider Build 21364)
- where can i find the list of all awailable outputs of "lsb_release -si" in linux?
- How can I export installed libraries on Python to one install shell?
- How do I obtain Linux distribution version in java
- what does it mean to have just the snapshot of the distribution filesystem when creating containers in docker?
- python 3.7 venv broken after upgrade to Ubuntu 20.04
- CPack: Package dependencies and Red Hat / SuSE naming schemes
- Why 'windows effects' setting not working in Deepin 15.11?
- Is there a Linux distro, which has better support for newer Python modules, compared to others?
- Python paths not being set on embedded installation
- comparing operating system effectively with an automoblie [metaphor]
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Same problem for me. This is my solution if you do not want to upgrade everything (perhaps not all package are upgradable).
Install python 3.7 which is gone with upgrade to ubuntu 20
in your virtualenv dir (e.g env/) edit last line in pyenv.cfg
set back soft link of python3 in env/bin linking back to 3.7
You may need to delete old symlik before creating new one
Now, should work: it does for me!