Re: Re: Cherrypy in Ubuntu with apt install
Marius Widmann <[email protected]> Thu, 28 Feb 2019 01:51:41 -0800 (PST)
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_2286_378218591.1551347501542 Content-Type: multipart/alternative; boundary="----=_Part_2287_1800320569.1551347501542" ------=_Part_2287_1800320569.1551347501542 Content-Type: text/plain; charset="UTF-8" The solution on Ubuntu 16.04 with python3 (Python 3.5.2): #Install virtualenvironment for python3 sudo apt-get install python3-venv #Create a folder for your environment mkdir environment #Create the environment python3 -m venv environment #Change into folder cd environment/bin #Activate environment source activate #Install pip within the env apt install python3-pip #Install cherrypy >= 18.1.0 pip3 install cherrypy #Run program python3 ./my_python_script.py On Monday, February 25, 2019 at 6:44:57 PM UTC+1, Marius Widmann wrote: > > Thank you. I used a virtualenv -- You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected] Visit this group at https://groups.google.com/group/cherrypy-users. For more options, visit https://groups.google.com/d/optout. ------=_Part_2287_1800320569.1551347501542 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>The solution on Ubuntu 16.04 with python3 (Python 3.5= .2):</div><div><br></div><div>#Install virtualenvironment for python3<br></= div><div>sudo apt-get install python3-venv</div><div><br></div><div>#Create= a folder for your environment<br></div><div>mkdir environment</div><div><b= r></div><div>#Create the environment<br></div><div>python3 -m venv environm= ent</div><div><br></div><div>#Change into folder<br></div><div>cd environme= nt/bin</div><div><br></div><div>#Activate environment<br></div><div>source = activate</div><div><br></div><div>#Install pip within the env<br></div><div= >apt install python3-pip</div><div><br></div><div>#Install cherrypy >=3D= 18.1.0<br></div><div>pip3 install cherrypy</div><div><br></div><div>#Run p= rogram</div><div>python3 ./my_python_script.py<br></div><div><br></div><div= ><br></div><br>On Monday, February 25, 2019 at 6:44:57 PM UTC+1, Marius Wid= mann wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left= : 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Thank you. I used a= virtualenv</blockquote></div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;cherrypy-users" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:cherrypy-users+unsubscribe-/[email protected]">cher= rypy-users+unsubscribe-/[email protected]</a>.<br /> To post to this group, send email to <a href=3D"mailto:cherrypy-users@googl= egroups.com">cherrypy-users-/[email protected]</a>.<br /> Visit this group at <a href=3D"https://groups.google.com/group/cherrypy-use= rs">https://groups.google.com/group/cherrypy-users</a>.<br /> For more options, visit <a href=3D"https://groups.google.com/d/optout">http= s://groups.google.com/d/optout</a>.<br /> ------=_Part_2287_1800320569.1551347501542-- ------=_Part_2286_378218591.1551347501542--