Open nzx7jv opened 2 years ago
Hey guys, I didn't solve this but instead I found alpine linux on linuxdeploy is much easier on setting up the python environment, as lots of libs can be installed using apk add instead of pip install. Maybe you should try it.
Cheers.
Hey guys, I didn't solve this but instead I found alpine linux on linuxdeploy is much easier on setting up the python environment, as lots of libs can be installed using apk add instead of pip install. Maybe you should try it.
Cheers.
Can you elaborate on it?
Hey guys,
Below is my approach on setting up a python working environment for data processing. Hope it helps!
Before installing any pip modules, look them up first in apk repositories via " apk search XXX".
Cheers!
Hi, I'm getting import error on python3.10 when importing scipy. How to fix this? Thanks
ImportError Traceback (most recent call last) /data/data/com.termux/files/usr/tmp/ipykernel_13127/302916529.py in
----> 1 from scipy.signal import find_peaks
/data/data/com.termux/files/usr/lib/python3.10/site-packages/scipy/signal/init.py in
300
301 from .bsplines import
--> 302 from .filter_design import
303 from .fir_filter_design import
304 from .ltisys import
/data/data/com.termux/files/usr/lib/python3.10/site-packages/scipy/signal/filter_design.py in
14 from numpy.polynomial.polynomial import polyvalfromroots
15
---> 16 from scipy import special, optimize, fft as sp_fft
17 from scipy.special import comb
18 from scipy._lib._util import float_factorial
/data/data/com.termux/files/usr/lib/python3.10/site-packages/scipy/optimize/init.py in
419 Bounds)
420 from ._hessian_update_strategy import HessianUpdateStrategy, BFGS, SR1
--> 421 from ._shgo import shgo
422 from ._dual_annealing import dual_annealing
423 from ._qap import quadratic_assignment
/data/data/com.termux/files/usr/lib/python3.10/site-packages/scipy/optimize/_shgo.py in
7 import logging
8 import warnings
----> 9 from scipy import spatial
10 from scipy.optimize import OptimizeResult, minimize
11 from scipy.optimize._shgo_lib import sobol_seq
/data/data/com.termux/files/usr/lib/python3.10/site-packages/scipy/spatial/init.py in
105 all += ['distance', 'transform']
106
--> 107 from . import distance, transform
108
109 from scipy._lib._testutils import PytestTester
/data/data/com.termux/files/usr/lib/python3.10/site-packages/scipy/spatial/transform/init.py in
17 RotationSpline
18 """
---> 19 from .rotation import Rotation, Slerp
20 from ._rotation_spline import RotationSpline
21
ImportError: dlopen failed: cannot locate symbol "_PyGen_Send" referenced by "/data/data/com.termux/files/usr/lib/python3.10/site-packages/scipy/spatial/transform/rotation.cpython-310.so"...