Nov-15-2017, 01:54 AM
What are my best bets for an interpreter? I am just starting with Python through Udacity. I have tried Skulpt but have problems with it.
Installing an interpreter
|
Nov-15-2017, 01:54 AM
What are my best bets for an interpreter? I am just starting with Python through Udacity. I have tried Skulpt but have problems with it.
Skulpt is an online implementation of python. You can install python and run its interpreter directly on your computer.
https://python-forum.io/Thread-Basic-Par...er-Windows
Recommended Tutorials:
Nov-15-2017, 02:28 AM
I am running linux, not windows. I have pip installed but for some reason setuptools will not install. I can rn it again and post the error.
Nov-15-2017, 04:31 AM
in that case you already have. Just type
python in the terminal
Recommended Tutorials:
Nov-15-2017, 10:51 AM
Nov-15-2017, 01:42 PM
(Nov-15-2017, 04:31 AM)metulburr Wrote: in that case you already have. Just type or preferably, python3
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch" Python 3.6.5, IDE: PyCharm 2018 Community Edition
Nov-16-2017, 10:16 PM
(Nov-15-2017, 10:51 AM)snippsat Wrote: ptpython and ipython are good. This is the same problem I am having with ipython. Here is a screen shot skipperdan@HP-Compaq ~ $ pip install ptpython Collecting ptpython Downloading ptpython-0.41-py2-none-any.whl (47kB) 100% |████████████████████████████████| 51kB 189kB/s Collecting prompt-toolkit<2.0.0,>=1.0.14 (from ptpython) Downloading prompt_toolkit-1.0.15-py2-none-any.whl (247kB) 100% |████████████████████████████████| 256kB 460kB/s Collecting docopt (from ptpython) Downloading docopt-0.6.2.tar.gz Could not import setuptools which is required to install from a source distribution. Please install setuptools. skipperdan@HP-Compaq ~ $ pip install setuptools Collecting setuptools Using cached setuptools-36.7.2-py2.py3-none-any.whl Installing collected packages: setuptools Exception: Traceback (most recent call last): File "/home/skipperdan/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/home/skipperdan/.local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run prefix=options.prefix_path, File "/home/skipperdan/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install **kwargs File "/home/skipperdan/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "/home/skipperdan/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files isolated=self.isolated, File "/home/skipperdan/.local/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files clobber(source, lib_dir, True) File "/home/skipperdan/.local/lib/python2.7/site-packages/pip/wheel.py", line 323, in clobber shutil.copyfile(srcfile, destfile) File "/usr/lib/python2.7/shutil.py", line 83, in copyfile with open(dst, 'wb') as fdst: IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/easy_install.pyc'
add sudo
sudo pip install ptpython EDIT: I didnt even know there were these custom interpreters. Guess thats shows how much i use them directly.
Recommended Tutorials:
Nov-16-2017, 10:47 PM
Install it locally as user:
pip install setuptools ptpython --user # for Python 2.7 pip3 install ptpython --user # for Python 3The switch --user will install the packages into your local user directory (~/.local/) and does not affect your system wide installation. At some point you'll have a virtual environment for your Python installation.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Nov-16-2017, 11:52 PM
getting closer, I now have Python 3 >>>, I would like to get ptpython working. here is what I get:
skipperdan@HP-Compaq ~ $ ptpython No command 'ptpython' found, did you mean: Command 'pvpython' from package 'paraview-python' (universe) ptpython: command not found skipperdan@HP-Compaq ~ $ sudo ptpython [sudo] password for skipperdan: sudo: ptpython: command not found skipperdan@HP-Compaq ~ $ sudo pip install ptpython The directory '/home/skipperdan/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/skipperdan/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting ptpython Downloading ptpython-0.41-py2-none-any.whl (47kB) 100% |████████████████████████████████| 51kB 243kB/s Collecting prompt-toolkit<2.0.0,>=1.0.14 (from ptpython) Downloading prompt_toolkit-1.0.15-py2-none-any.whl (247kB) 100% |████████████████████████████████| 256kB 304kB/s Collecting docopt (from ptpython) Downloading docopt-0.6.2.tar.gz Could not import setuptools which is required to install from a source distribution. Please install setuptools. |
|