![]() Your python interpreter will look first in the virtualenv's package directory, so those packages should shadow the global ones. That way pip will install what you've requested locally even though a system-wide version exists. Then, activate the virtualenv and when you want things installed in the virtualenv rather than the system python, use pip install -ignore-installed or pip install -I. Make virtualenv inherit specific packages from your global site-packagesĬreate the environment with virtualenv -system-site-packages. So, I'm thinking - I already have numpy and scipy, why can't I reuse those? So I found: Ok, so I do pip3 install numpy and it takes an hour to build from source, and then install process fails again for scipy - I can tell already this is going to be another hour. ![]() ![]() but upon building the package with python3 setup.py install, I get ModuleNotFoundError: No module named 'numpy'. Successfully uninstalled setuptools-65.5.0 ![]() Installing collected packages: setuptoolsįound existing installation: setuptools 65.5.0 This works, I can install old setuptools: $ pip3 install setuptools=45ĭownloading setuptools-45.0.0-py2.p圓-none-any.whl (583 kB) Since that is likely to mess up the rest of my system, I'm thinking I should try this in python3 -m venv mingw64_p圓.10_venv. It being old, it uses deprecated features for setuptools, so now I have to install old setuptools. I use the Python 3.10.10 in MINGW64, and I want to use a Python3 package that has not been updated in years, which I've installed successfully back in Python 3.7 on this platform - but of course, that is useless on Python 3.10.
0 Comments
Leave a Reply. |