Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Another flawless victory. Can you tell I’m on a roll setting up Python environments? ;)
Heads up! The step where you install additional development tools…
sudo apt-get install build-essential libssl-dev libffi-dev python-dev
… will make python 2.7 as your default python setup, instead of python 3, so the following python 3 packages installation will fail.
I’ve omitted this step, but I don’t know exactly if it is recommended the installation of any other extra development tools to have a solid environment. Do you recommend any?
Hi,
Thank you for this. Should I be seeing GNU nano 2.7.3 when I enter the text screen? Shouldn’t it show 3.5.0 or something along those lines?
Also, is downloading and running python in this way different from downloading the package from the python website and installing through the terminal or synaptic? Sorry…I am very much a noob.
Thanks again!
Great Tutorial! Thanks!
The following command fails for me though:
$ sudo apt-get install -y python3-venv
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-venv
Just for reference, here is my info:
$ uname -a
Linux OPONE 3.4.0+ #1 PREEMPT Thu Aug 1 17:06:05 CST 2013 x86_64 x86_64 x86_64 GNU/Linux
Thank you so much! the instructions are very clear and logical! I solved my problem within minutes!
I’ve having an issue with Python3 on my Ubuntu 16.04 droplet. It’s set up to be used with shiny (and a shiny server), and of course, python3.5 is already installed. I’m having an issue with getting python3.5 to connect to the internet in scripts. I’m thinking that’s an issue with requests or some other package, but I don’t have any clue where to begin.
When I run the scripts, they get ‘stuck’ - they just won’t access the internet. If I manually end them, I get the following code:
File "/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py", line 379, in _make_request
httplib_response = conn.getresponse(buffering=True)
TypeError: getresponse() got an unexpected keyword argument 'buffering'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nba_rookie_stats.py", line 38, in <module>
x = req.get(url,headers=_HTTP_HEADERS)
File "/usr/local/lib/python3.5/dist-packages/requests/api.py", line 70, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 630, in send
history = [resp for resp in gen] if allow_redirects else []
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 630, in <listcomp>
history = [resp for resp in gen] if allow_redirects else []
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 190, in resolve_redirects
**adapter_kwargs
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/adapters.py", line 423, in send
timeout=timeout
File "/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py", line 382, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.5/http/client.py", line 1197, in getresponse
response.begin()
File "/usr/lib/python3.5/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.5/http/client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.5/socket.py", line 575, in readinto
return self._sock.recv_into(b)
My guess is there is some kind of issue with the ip/server configuration, but I’m not sure exactly where to start with testing this.