At the mercy of the machines #12261
-
A year or so back I did a pip.install mpy-cross==1.17 on windows 10. The machine elected to park the result in C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\mpy_cross Now days I've got more & more esp32s running ver 1.20 & I'd like make some .mpy files for them too. I'm worried that pip.install mpy-cross==1.20 is going clobber the existing mpy_cross for v1.17 which I'm still using. Is there some cmd line switch I can invoke that will force the pip install to put the new mpy_cross somewhere else? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
You could use a virtualenv to install a package "locally" into that virtualenv (https://docs.python.org/3/library/venv.html). That will not touch system-wide installed packages. |
Beta Was this translation helpful? Give feedback.
-
At Pybricks, we needed to be able to install multiple versions of |
Beta Was this translation helpful? Give feedback.
-
Mpy.cross is one of the few python 'extras' simple enough for the likes of
me Jim, hope it's still a simple install when you've finished expanding its
scope. Looking forward to it because the other 2 suggestions are completely
beyond me.
…On Mon, 21 Aug 2023, 12:40 pm Jim Mussared, ***@***.***> wrote:
+1 to this -- this is definitely the way to work with Python dependencies.
FYI we are also looking at solving this in teh future by having the
mpy_cross PyPI package support multiple bytecode versions. See #11723
<#11723> for the initial
work.
—
Reply to this email directly, view it on GitHub
<#12261 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AV562M6G37DYAF6VQEQIW7DXWLDATANCNFSM6AAAAAA3WL67IU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
You could use a virtualenv to install a package "locally" into that virtualenv (https://docs.python.org/3/library/venv.html). That will not touch system-wide installed packages.