Mac osx 10.12 下安装cadnano

来源:互联网 发布:sql server 收费标准 编辑:程序博客网 时间:2024/06/05 17:26

请使用vpn

1,安装之前先解决unable to access ‘https://github.com/Homebrew/brew/‘: Failed to connect to github.com,避免安装失败

参见http://blog.csdn.net/u010599923/article/details/58210145


1.1 获取ip,并copy

$ ping github.com

1.2在/etc/hosts中增加ip

$ sudo vi etc/hosts

输入用户密码
打开之后在文件添加获取的ip

:wq

保存退出

2,安装homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

直至installation successful
如果出现其他问题,参见点击打开链接

2.2 安装成功之后,可能会出现使用brew,有command not found的问题

两种解决方法

1, 每次brew之前

$ /usr/local/bin/brew doctor

2,更改bash_profile打开文件

$ sudo vi ~/.bash_profile

加入

export PATH=/usr/local/homebrew/bin:$PATH:wq

回到终端输入,使文件生效。

source ~/.bash_profile

3,安装python3

参见http://www.iosxxx.com/blog/2015-12-24-brewan-zhuang-python.html

sudo mv /usr/bin/python /usr/bin/python2

出现Operation not permitted,解决办法:
Mac重新开机,command+R进入恢复模式,打开terminal

csrutil disable

重新启动,按照上述链接重新安装。
安装完成之后,Mac重新开机,command+R进入恢复模式,打开terminal

csrutil enable

重新启动,python安装完成。

4,安装PyQt5

$ pip3 install PyQt5

5,装cadnano

$ pip3 install "Git+https://github.com/cadnano/cadnano2.5"

地址如有更新自行更换即可。
cadnano安装成功之后,键入下行,后者每次从terminal中启动。

$ python setup.py install$ cadnanoinstall

完成。

注:安装完成的cadnano有很多bug,如果有人找到了补丁文件,请告知,谢谢

0 0
原创粉丝点击