Python Forum
Can I make virtualenv (and/or uwsgi) use python 3.6 instead of 2.7?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I make virtualenv (and/or uwsgi) use python 3.6 instead of 2.7?
#3
Woo! It worked ok here's what I did:

It's kind of a hybrid of the tutorial, your advice, the thread you linked me too, and a line from another forum where I asked this question haha:

sudo apt-get install python3-venv
python3 -m venv ./myapp
cd myapp
source bin/activate
And then subsequently:
uwsgi --socket 0.0.0.0:8080 --protocol=http -w wsgi
And then in the browser it was able to talk to my hello world app.

However what I did wrong (before I posted this post) was; instead of doing nano ~/.bashrc I just overwrote /usr/bin/python /usr/bin/python3

Probably wasn't a good idea, right. I still have the python2 executable so I could just copy /usr/bin/python2 over /usr/bin/python. But I won't bother until something else on the system breaks. (This is on my workstation PC running ubuntu.)

Anyway- all of that git stuff and the .tar.gz file and the "make"- I know how to do that stuff but I figure this is good enough; I don't need something that fancy.

So unless you've got something to add I'll go ahead and mark this solved, yes?

Thanks Larz60.
Reply


Messages In This Thread
RE: Can I make virtualenv (and/or uwsgi) use python 3.6 instead of 2.7? - by david503 - Nov-07-2019, 02:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What do I put in the "module" argument in a uwsgi.ini file? david503 0 2,543 Nov-10-2019, 04:00 AM
Last Post: david503
  How to point a subdomain to run applications using virtualenv on ec2 (AWS) JohnnyCoffee 0 1,416 Oct-02-2019, 12:43 AM
Last Post: JohnnyCoffee

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020