You are not logged in.

#1 2020-12-01 20:13:35

sjdh
Member
Registered: 2013-09-19
Posts: 20

How to install a arch-python package in a python virtual environment

Community offers the package python-pytorch-cuda, which gets all dependencies for pytorch right. The package is installed it on my system and makes pytorch available for the system-wide version of Python.

Now I need pytorch in a python virtual environment. I want to install the same version of the python package pytorch. In that way all dependencies should be right. Pip install may potentially pull a different version of pytorch that works with different dependencies. How can I install the exact same version of the python package in the python virtual env? Is it somewhere available as a wheel?

Offline

#2 2020-12-04 05:17:29

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 4,097

Re: How to install a arch-python package in a python virtual environment

pip freeze maybe. Or create the venv with --system-site-packages.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB