virtualenv python broke after upgrading ubuntu 15.10 to 16.04

后端 未结 5 700
渐次进展
渐次进展 2021-02-12 15:41

I had python 3.4 in my virtualenv, but after upgrading ubuntu to 16.04 python upgraded to 3.5 so python in virtualenv crashes with these errors:

Could not find p         


        
5条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-12 16:29

    I experienced the same issue and I managed to "fix" is by recreating the virtualenv and reinstalling the required packages using pip.

    Create a new virtualenv:

    virtualenv 
    

    Activate it:

    source /bin/activate
    

    Install the packages:

    pip install 
    

    And I was good to go again!

    You can keep the old virtualenv by just renaming the folder:

    mv  -backup
    

提交回复
热议问题