PyPM

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
RBR

PyPM

Post by RBR »

I am new to Linux and want to install pycollada, using the python package manager PyPM.

But the pypm command is not recognised in the terminal, and the mint software manager does not know pycollada nor PyPM.

Does anyone know how to do this?

Thanks!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
overthetop

Re: PyPM

Post by overthetop »

See http://pycollada.github.io/install.html. (see the instructions for Ubuntu)
mockturtl

Re: PyPM

Post by mockturtl »

PyPM is part of the commercial "ActivePython" implementation. You don't need it on Linux; python 2.7 and 3.2 are preinstalled.

(The whole story of installing is different on Linux. You don't browse the web and download programs; 95% of all the software you want is available in the distro's "repository." You install these "packages" through the Software Manager, or the command line. You get automatic updates for everything.)

http://packages.linuxmint.com/
http://packages.ubuntu.com/

Similarly, the python ecosystem consists of a package repository, "PyPI." You get these modules with the `pip` command. (`easy_install` is an alternative to pip.)

The line between the two is not so clear; some code is "OS stuff" to me (my system depends on this language!), but "language stuff" to you (my code should run in any OS!). And maybe you need different versions for different projects. So there's a bit of an art to keeping all your pythons wrangled.

Code: Select all

$ apt install python-pip                                # `apt` is Mint's install command
$ apt install python-lxml python-numpy python-dateutil  # pycollada depends on some libraries
$ sudo pip install pycollada                            # need the administrator command `sudo` to write to your "Program Files" directory, /usr
RBR

Re: PyPM

Post by RBR »

mockturtl wrote:PyPM is part of the commercial "ActivePython" implementation. You don't need it on Linux; python 2.7 and 3.2 are preinstalled.

(The whole story of installing is different on Linux. You don't browse the web and download programs; 95% of all the software you want is available in the distro's "repository." You install these "packages" through the Software Manager, or the command line. You get automatic updates for everything.)

http://packages.linuxmint.com/
http://packages.ubuntu.com/

Similarly, the python ecosystem consists of a package repository, "PyPI." You get these modules with the `pip` command. (`easy_install` is an alternative to pip.)

The line between the two is not so clear; some code is "OS stuff" to me (my system depends on this language!), but "language stuff" to you (my code should run in any OS!). And maybe you need different versions for different projects. So there's a bit of an art to keeping all your pythons wrangled.

Code: Select all

$ apt install python-pip                                # `apt` is Mint's install command
$ apt install python-lxml python-numpy python-dateutil  # pycollada depends on some libraries
$ sudo pip install pycollada                            # need the administrator command `sudo` to write to your "Program Files" directory, /usr

Thanks that worked well. Perhaps a tangent to this. On windows I used PyScripter (brilliant IDE) and am wondering if there is/ what is the equivalent in linux. I am using geany now which is fine, but:

- I would link to have a kind of command windos (similar to that in Pyscripter or the command window in Matlab). It makes debugging and post processing so much easier
- it is really nice to have a function where you can evaluate selected code rather then only the entire program (similar to f9 button in matlab, or its equivalent in pyscripter)

note: maybe you can do this in geany, but I have not found it yet
overthetop

Re: PyPM

Post by overthetop »

RBR wrote:Thanks that worked well. Perhaps a tangent to this. On windows I used PyScripter (brilliant IDE) and am wondering if there is/ what is the equivalent in linux.
I personally use Geany and Vim for Python.
Many people like eric (its in the repos) and WING (its comercial but offers free licenses for classroom use and unpaid open source development).

Here a reference:
List of Python editors and IDE's
Locked

Return to “Beginner Questions”