Pre-install numpy for Python 3.10
This commit is contained in:
+5
-4
@@ -32,10 +32,6 @@ python -m pip install --upgrade pip
|
|||||||
version=$(python -V | cut -f 2 -d ' ' | cut -f 1,2 -d .)
|
version=$(python -V | cut -f 2 -d ' ' | cut -f 1,2 -d .)
|
||||||
reqs_file='requirements.txt'
|
reqs_file='requirements.txt'
|
||||||
|
|
||||||
if [ "$version" == "3.10" ]; then
|
|
||||||
(cd .dfl/DeepFaceLab; git checkout support-opencv45)
|
|
||||||
fi
|
|
||||||
|
|
||||||
version_suffix=''
|
version_suffix=''
|
||||||
if [[ ! -z "$version" && -f "requirements_$version.txt" ]]; then
|
if [[ ! -z "$version" && -f "requirements_$version.txt" ]]; then
|
||||||
version_suffix="_$version"
|
version_suffix="_$version"
|
||||||
@@ -66,6 +62,11 @@ if is_arm64; then
|
|||||||
|
|
||||||
h5py_pkg="$(cat $reqs_file | grep -E 'h5py==.+')"
|
h5py_pkg="$(cat $reqs_file | grep -E 'h5py==.+')"
|
||||||
HDF5_DIR="$(brew --prefix hdf5)" pip --no-cache-dir install --no-build-isolation "$h5py_pkg"
|
HDF5_DIR="$(brew --prefix hdf5)" pip --no-cache-dir install --no-build-isolation "$h5py_pkg"
|
||||||
|
elif [ "$version" == "3.10" ]; then
|
||||||
|
(cd .dfl/DeepFaceLab; git checkout support-opencv45)
|
||||||
|
|
||||||
|
numpy_pkg="$(cat $reqs_file | grep -E 'numpy==.+')"
|
||||||
|
pip install "$numpy_pkg"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pip --no-cache-dir install -r $reqs_file
|
pip --no-cache-dir install -r $reqs_file
|
||||||
|
|||||||
Reference in New Issue
Block a user