You are not logged in.

#1 2017-04-23 22:53:56

xtian
Member
Registered: 2013-08-25
Posts: 179

How can I troubleshoot Arch's Python install of VENV packages?

It seems strange to me a new VENV that uses the `--system-site-packages` argument (for accessing the Arch base Python packages), creates a new VENV that isn't a complete mirror of the non-VENV environment.

How I tested this:
1) `pip freeze` of my current install of Python from Arch packages.

2) Created a virtual environment, venv
    `$mkvirtualenv --system-site-packages venv`

3) Compared a second `pip freeze` from inside the active venv using `diff`.

I expected the diff to be the same (except for the one package I installed with pip, python-magic), but there are numerous differences.

I believe all the packages were installed with `pacman` (positive all the major ones).
It's possible, over time, that I've used PIP for a few packages, but more often than not, I stuck with `pacman` install to take advantage of the Arch community fixing incompatibilities.

How can I troubleshoot the problem of different packages in my VENV using the  `--system-site-packages` argument?

// UPDATE. I rewrote the question to hopefully make it easier to answer smile

Last edited by xtian (2017-04-29 17:29:28)

Offline

#2 2017-05-06 18:58:30

xtian
Member
Registered: 2013-08-25
Posts: 179

Re: How can I troubleshoot Arch's Python install of VENV packages?

Still looking for help to troubleshoot why Python virtualenv doesn't play well with Arch install of iPython.
- should I reinstall?
- should I follow most advise and switch to PIP install iPython?

Offline

#3 2017-05-06 23:00:15

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 340
Website

Re: How can I troubleshoot Arch's Python install of VENV packages?

I often use virtualenv , beat's me why one would even want virtualenv to use the systems python, doesn't that defeat the purpose of a virtualenv ?
what are you trying to accomplish with the virtualenv ?
pip is often used to install to virtualenv, not pacman.
good luck.

Last edited by cirrus (2017-05-06 23:07:53)

Offline

#4 2017-05-07 00:59:08

xtian
Member
Registered: 2013-08-25
Posts: 179

Re: How can I troubleshoot Arch's Python install of VENV packages?

My activities with Python are not shared within a development environment, so I'm not concerned about which versions the team is using. So Arch packages are sufficient. And the Arch packages for all the Python packages have worked great up to now: iPython, jupyter notebooks, matplotlib, numpy, pandas. Everything is updated with my regular `pacman` system updates.

// I wish for Python to use all of these common packages installed via Pacman, and in this one environment I wish to use the dev-version of Pandas.

I dunno...seemed like a reasonable use of VENV smile

[Update] Revisitng my post and thought to clarify my earlier comment...

Last edited by xtian (2018-03-24 16:43:07)

Offline

Board footer

Powered by FluxBB