mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-03 11:47:44 +00:00
Add Linux support for Python library path
This commit is contained in:
@@ -49,11 +49,12 @@ jobs:
|
||||
|
||||
- name: Install pandas-ta
|
||||
run: |
|
||||
sudo apt install python3.10
|
||||
sudo apt install python3.10-dev
|
||||
pip3 install numpy
|
||||
pip3 install pandas
|
||||
pip3 install pandas-ta
|
||||
python --version
|
||||
ls /home/runner/.local/lib/
|
||||
|
||||
############## Install more tools
|
||||
|
||||
|
||||
@@ -463,7 +463,9 @@ public static class PythonLibrary {
|
||||
throw new FileNotFoundException("Python library not found in PATH");
|
||||
}
|
||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) {
|
||||
List<string> pythonLibraries = new List<string>();
|
||||
return "/usr/lib/x86_64-linux-gnu/libpython3.10.so";
|
||||
/*
|
||||
List<string> pythonLibraries = new List<string>();
|
||||
List<string> directoriesToSearch = new List<string> { "/home/runner/.local/lib" }; // Add more directories as needed
|
||||
string filePattern = "libpython3.*.so";
|
||||
SearchFiles(directoriesToSearch, filePattern, pythonLibraries);
|
||||
@@ -474,6 +476,7 @@ public static class PythonLibrary {
|
||||
else {
|
||||
throw new FileNotFoundException("Python library not found");
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) {
|
||||
|
||||
Reference in New Issue
Block a user