Python Issues reddit / BSD ---------------------------------------------------------------------- [deleted] · 2019-01-06 22:11 [deleted] ---------------------------------------------------------------------- bobobo1618 · 2019-01-07 08:40 First: Everything uses [the same repository](https://pypi.org) however that repository occasionally has only binary packages for a module, because that's what the module owner published. [This is the case with PyQt5](https://pypi.org/project/PyQt5/#files) and may be the case for other modules, especially the GUI-related kind, as they require binary components that have to be compiled for your platform. Second: To get system packages visible in your virtualenv, you can either create the environment with `--system-site-packages` or manually add the directory to Python's import paths (e.g. with `PYTHONPATH` environment variable). ---------------------------------------------------------------------- [deleted] · 2019-01-07 11:16 [deleted] ---------------------------------------------------------------------- [deleted] · 2019-01-07 14:34 $ doas mount -u -o wxallowed /home $ virtualenv-3 pyqt5 $ source pyqt5/bin/activate $ pip install python-qt5 $ pip list I am FreeBSD user, but I think this should work :) ---------------------------------------------------------------------- [deleted] · 2019-01-07 14:37 [deleted] ---------------------------------------------------------------------- [deleted] · 2019-01-07 14:39 [deleted] ---------------------------------------------------------------------- bobobo1618 · 2019-01-07 15:21 > Is it possible to add a system package to an already create virtualenv? You could try symlinking but I'd really recommend rebuilding. It's pretty cheap. If you didn't know, you can use `pip freeze` to output a list of installed packages and `pip install -r` to install such a list of packages. > but I am unsure how that works or what adding something to that could do in total It just tells python where to look for modules. No harm done. > It seems the module itself is broken as well. Yes, it is. There are no published files: https://pypi.org/project/python-qt5/ Also, the package is intended for Windows 64-bit only, per [the package's GitHub page](https://github.com/pyqt/python-qt5). Wherever you're reading that you should install this package is wrong. The [official docs](http://pyqt.sourceforge.net/Docs/PyQt5/installation.html) instruct you to install the `pyqt5` package, which I linked earlier and should work on Linux, Mac and Windows. On other platforms, you use the OS-provided package or build from source. ---------------------------------------------------------------------- [deleted] · 2019-01-07 15:23 [deleted] ---------------------------------------------------------------------- [deleted] · 2019-01-07 15:31 $ cd /tmp/ $ virtualenv-3.6 pyqt5 Using base prefix '/usr/local' New python executable in /tmp/pyqt5/bin/python3.6 Also creating executable in /tmp/pyqt5/bin/python Installing setuptools, pip, wheel...done. $ . pyqt5/bin/activate (pyqt5) $ pip install python-qt5 Collecting python-qt5 Downloading https://files.pythonhosted.org/packages/b0/61/db8195 0cab71be1cce47c57e6662563b915799d1785ccfc78baf2ac4e536/python- qt5-0.1.10.zip (57.5MB) 100% |████████████████████████████████| 57.5MB 795kB/s (pyqt5) $ pip list pip 18.1 python-qt5 0.1.10 setuptools 40.6.3 sqlite3 0.0.0 wheel 0.32.3 ​ ---------------------------------------------------------------------- [deleted] · 2019-01-07 15:44 [deleted] ---------------------------------------------------------------------- bobobo1618 · 2019-01-07 15:45 I'm not quite sure what you're asking. If you have a Git repository with a virtualenv inside it, no, deleting the virtualenv will not do anything to the repo (unless you've committed the virtualenv to the repo, in which case you shouldn't do that and should remove it from Git and add it to your .gitignore). ---------------------------------------------------------------------- [deleted] · 2019-01-07 15:57 [deleted] ---------------------------------------------------------------------- [deleted] · 2019-01-07 21:43 [deleted] ---------------------------------------------------------------------- bobobo1618 · 2019-01-08 07:36 `--system-site-packages` doesn't take any arguments. The command should just be `virtualenv --system-site-packages `. ---------------------------------------------------------------------- [deleted] · 2019-01-08 11:02 [deleted]