pip install git+https://github.com/myshell-ai/MeloTTS.git
pip install git+ssh://git@github.com/myshell-ai/MeloTTS.git
git clone git@github.com:myshell-ai/MeloTTS.git
cd MeloTTS
pip install .
依赖关系
- ```sh
pipdeptree --packages crashresolver
# or
pip show crashresolver
```
pip源
- ### 设置源
- ```sh
# 清华源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# /Users/admin/.config/pip/pip.conf
# 或:
# 阿里源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
# 腾讯源
pip config set global.index-url http://mirrors.cloud.tencent.com/pypi/simple
# 豆瓣源
pip config set global.index-url http://pypi.douban.com/simple/
```
- ```sh
pip install markdown -i https://pypi.tuna.tsinghua.edu.cn/simple
```
- [Specifying multiple trusted hosts in pip.conf](https://stackoverflow.com/questions/59287824/specifying-multiple-trusted-hosts-in-pip-conf)
- ```
[global]
trusted-host = pypi.org
files.pythonhosted.org
```
- `~/.pip/pip.conf` mac上的路径
- ```
pip install --verbose --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org six
```
- ### pip当前源
- `pip3 config list` prints the config. Config file locations are documented [https://pip.pypa.io/en/stable/user_guide/#config-file](https://pip.pypa.io/en/stable/user_guide/#config-file). For me, it was located in `/etc/pip.conf`
- ```
$ pip install -h
```
install
- ### install .whl文件
- A Wheel is a built package that can be installed without needing to compile anything, making it a faster installation method than installing from source.
- `pip install file.whl`
- ```sh
pip install -r requirements.txt
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com
```
下载而不更新
- ```sh
pip download package_name==version_number
pip download package_name -d /path/to/directory
pip download package_name --only-binary=:all: #wheels (binary packages)
pip download package_name --proxy [user:passwd@]proxy.server:port
pip download package_name --platform manylinux1_x86_64 --python-version 36 --abi cp36m --implementation cp
```
pipenv
- sh pipenv install package_name # 安装依赖 pipenv uninstall package_name # 卸载依赖 pipenv shell # 进入虚拟环境 pipenv lock # 生成锁文件 pipenv install --dev # 安装开发环境依赖