pip3 install command

With Ubuntu I use pip3 install “package name”
Which command should I use for opensuse 12.3 x86_64.
I already installed python3-pip but pip3 install is still not a typo I can use.

Greetings
Anton

On 2015-06-11 17:16, anton wrote:
>
> With Ubuntu I use pip3 install “package name”
> Which command should I use for opensuse 12.3 x86_64.

On the command line, zypper.

Otherwise, the tool of reference is YaST. It is what makes *suse different.

On kde there is also apper, and on gnome there is another applet I don’t
remember the name of.

> I already installed python3-pip but pip3 install is still not a typo I
> can use.

Don’t even try.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

Cannot install with zypper package not found
If I use pip install then I get after downloading : Sorry, Python 2 is not supported.

On 2015-06-11 18:06, anton wrote:
>
> Cannot install with zypper package not found

Paste here the exact sequence of what you do. Include the initial bash
command prompt, to the last one. And place it inside a code tags section
— the ‘#’ button in the editor.

> If I use pip install then I get after downloading : Sorry, Python 2 is
> not supported.

Please forget pip.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

Install is under virtualenv.
Anyhow changed the server to Ubuntu now it all works fine.

Hi
In openSUSE we use python3 as a prefix for packages using python3, so in your case it would have been python3-pip and pip3.

So what should I type:
. venv/bin/activate
python3 install blender-bam is not a typo you can use command-not-found
python3-pip install blender-bam is not a typo you can use command-not-found
pip3 install blender–bam is not a typo you can use command-not-found

(venv)linux-nfs:/srv/www/htdocs/flamenco-master/flamenco # python3 install blender-bam
python3: can't open file 'install': [Errno 2] No such file or directory
(venv)linux-nfs:/srv/www/htdocs/flamenco-master/flamenco # python3-pip install blender-bam
If 'python3-pip' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf python3-pip
(venv)linux-nfs:/srv/www/htdocs/flamenco-master/flamenco # pip install blender-bam
/srv/www/htdocs/flamenco-master/flamenco/venv/lib/python2.7/site-packages/pip-7.0.3-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Collecting blender-bam
/srv/www/htdocs/flamenco-master/flamenco/venv/lib/python2.7/site-packages/pip-7.0.3-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Using cached blender-bam-0.0.4.8.tar.gz
    Complete output from command python setup.py egg_info:
    Sorry, Python 2 is not supported
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-YJ1V4H/blender-bam
(venv)linux-nfs:/srv/www/htdocs/flamenco-master/flamenco # 

Pip is the python management command that connects to the official Python repos, not openSUSE.

This is used when you don’t want to install Python from the native distro and instead want to install from the offical Python repos, and this is the case whether you’re talking about Ubuntu, openSUSE or any other distro

I see you say you installed the correct package (python3-pip) but you don’t say what your error is, this is essential for any help.
It should work exactly as it did on Ubuntu.

TSU

When I check my machine, I see separate virtualenv packages for default python and python 3.
Did you install the version for python 3 and invoke it?

TSU

sudo easy_install virtualenv
virtualenv venv

Python 2.7.3 same as under Ubuntu.

I already posted the error see wrap CODE tags

FYI
Just ran successfully on my 13.2 (don’t have a 12.3 to try this on)

Installed virtualenv for Python3. Curiously “regular” virtualenv failed but for these purposes shouldn’t matter since we’re only interested in Python 3.

zypper in python3-virtualenv 

Inspected the contents, determined that virtualenv3 invokes Python 3 by default. In any case, I don’t think this has anything to do with installing an app, only running an app.

I then ran the following successfully to install blender-bam

pip3 install blender-bam

So, whatever issues you had is a mystery to me… And, in any case openSUSE 12.3 is getting long in the tooth and shouldn’t be used. Use a newer version.

HTH,
TSU

cannot install python3-virtualenv with zypper no source to find the package.

it is in the main repositories, try the 1 click version from here
https://software.opensuse.org/package/python3-virtualenv

Have you installed the special openSUSE python extensions repo?
First browse the repos available with a web browser at

http://download.opensuse.org/repositories/devel:/languages:/python/

You’ll find that there is still a repository that supports 12.3, so you can install that repo with the following command which also refreshes your repos to populate your local cache

zypper ar http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_12.3 devel:languages:python:extensions && zypper ref

After you’ve added that repo which should always be installed whenever setting up a Dev environment or you find files are missing, you can then continue.

BTW - I don’t know if it’s helpful in your python case, but I just posted a “How To” guide to setup Ruby on openSUSE.
The steps to setup a proper Python environment are more or less the same except of course you use pip instead of gem, you use virtualenv instead of rbenv, and so on… The details are different but the general approach is the same.
https://en.opensuse.org/User:Tsu2/Install_Ruby

TSU

There is no 12.3 version anymore.

cannot find repodata/repomd.xml I guess I have to upgrade to opensuse 13.2

are you sure because
http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_12.3/
is reachable with a web browser, you should check your command
but as 12.3 is dead and most repositories if not dead will be deleted you should definitely update to a supported version

edit I think there is a sintax error in tsu’s example

zypper ar
zypper ar http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_12.3 devel:languages:python:extensions && zypper ref

if you are not passing a *.repo file to zypper you’d need 2 paramaters,
try this

zypper ar -r http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_12.3/devel:languages:python.repo

On 2015-06-11 19:26, tsu2 wrote:
>
> Pip is the python management command that connects to the official
> Python repos, not openSUSE.
>
> This is used when you don’t want to install Python from the native
> distro and instead want to install from the offical Python repos, and
> this is the case whether you’re talking about Ubuntu, openSUSE or any
> other distro

I see, thanks. This was not clear to me from what he said.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Just one question: why are you trying to install/use pip3 then?
That’s for python3…

With virtualenv it’s similar: python3-virtualenv is the python3 version. For python 2, you need python-virtualenv instead.
http://software.opensuse.org/package/python-virtualenv
That package is included in openSUSE 12.3 btw, no need for pip or additional repos. Just install it with YaST or “zypper in python-virtualenv”.

I already posted the error see wrap CODE tags

Yes, it said “python 2 is not supported”, which is obvious because pip3 is for python3 only.
Try installing python-pip and running pip2 instead.

Or am I misunderstanding something?

And, if the python stuff you want to install is available in the distribution/the mentioned python repo, you might better install the openSUSE packages with “zypper in python-xxx” instead of using pip as has been hinted at already.