2
我在mac上,並在終端上設置了帶有prezto的zsh。 我有一個python項目,我使用virtualenv包裝。一切工作正常,但是當我安裝一個新的軟件包使用PIP,並希望它凍結在現有requirements.txt文件,zsh中說:zip文件在使用pip安裝新軟件包時存在錯誤
zsh: file exists: requirements
我運行的命令是:pip freeze > requirements.txt
我zshrc文件如下:
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Customize to your needs...
export PATH=$PATH:$HOME/bin
ZSH_THEME="steeef"
plugins=(git django colored-man themes colorize github jira vagrant virtualenvwrapper pip python brew osx zsh-syntax-highlighting history-substring-search)
# export WORKON_HOME=$HOME/.virtuale nvs
# source /usr/local/bin/virtualenvwrapper.sh
export PATH=$PATH:/usr/local/mysql/bin
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
export WORKON_HOME=$HOME/.virtualenvs
PATH=$PATH:~/bin
export PATH
# source ~/.bash_profile
# export M2_HOME=~/maven-3.3.9
# export M2=$M2_HOME/bin
export PATH=$M2:$PATH
export JAVA_HOME=
source /usr/local/bin/virtualenvwrapper.sh
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.6/bin
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
我可以知道這裏可能有什麼問題嗎?
感謝
不是 「setopts揍」,而是 「SETOPT撞地」 爲我工作。 – Maverick