xjtu-omics / SVision

Detecting genome structural variants with deep learning in single molecule sequencing
GNU General Public License v3.0
101 stars 10 forks source link

can't install on mac #18

Closed proukakis closed 8 months ago

proukakis commented 1 year ago

hello mac OS Monterey 12.6, Python 3.8.3 when i run the python setup.py install i get No local packages or working download links found for tensorflow==1.14.0 error: Could not find suitable distribution for Requirement.parse('tensorflow==1.14.0')

I tried conda and brew install tensorflow, both seem to complete, still same error

thanks! Christos

jiadong324 commented 1 year ago

Hi,

I have successfully installed on my Mac (V12.6.3 Monterey). The dependencies listed in the environment.yml contain tensorflow and other related packages. Please first run conda env create -f environment.yml to create a python 3.6 environment for further installation.

Please let me know if you have further issues.

proukakis commented 1 year ago

Hi, thanks for reply, do you think the problem is my Python, which doesn't allow tensorflow 1.4? python --version Python 3.8.3

eg image

so i have been trying to downgrade my python to 3.6, in case this helps, but doesn't seem easy

eg pyenv install 3.6.6 python-build: use openssl from homebrew python-build: use readline from homebrew Downloading Python-3.6.6.tar.xz... -> https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tar.xz Installing Python-3.6.6... python-build: use tcl-tk from homebrew python-build: use readline from homebrew python-build: use zlib from homebrew

BUILD FAILED (OS X 12.6 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/ct/c_hgmk7s6hx4ch0v3bcbb6k00000gn/T/python-build.20230508213258.30661 Results logged to /var/folders/ct/c_hgmk7s6hx4ch0v3bcbb6k00000gn/T/python-build.20230508213258.30661.log

Last 10 log lines: checking for --with-universal-archs... no checking MACHDEP... darwin checking for --without-gcc... no checking for --with-icc... no checking for x86_64-apple-darwin13.4.0-gcc... gcc-11 checking whether the C compiler works... no configure: error: in /var/folders/ct/c_hgmk7s6hx4ch0v3bcbb6k00000gn/T/python-build.20230508213258.30661/Python-3.6.6': configure: error: C compiler cannot create executables Seeconfig.log' for more details make: *** No targets specified and no makefile found. Stop.

jiadong324 commented 1 year ago

Did you run conda env create -f environment.yml? It seems that you are using pyenv to create the environment, which I have not tested yet.

proukakis commented 1 year ago

YEs i think the problem is tensor flow

error: Could not find suitable distribution for Requirement.parse('tensorflow==1.14.0')

we will give it a go on linux in a couple of weeks

thanks