torchvision在pipenv install出现版本依赖错误
官方指明:TorchVision requires PyTorch 1.2 or newer
因此,当pytorch为1.0.1时,需要指定安装torchvision==0.2.0(0.2.0为测试通过的版本号)
pyinstaller打包出现assert self.hook_module_name not in HOOKS_MODULE_NAMES的错误
pyinstaller的3.6的bug,指定安装3.5版本可以解决问题。
pydensecrf安装失败(python3.7时)
这个包依赖cython,需要先安装cython
方法1
pipenv通过github的地址直接安装:
pipenv install -e git+https://github.com/lucasb-eyer/pydensecrf.git#egg=pydensecrf
方法2
pip通过本地包安装(github下载pydensecrf-master.zip)
pip install ./pydensecrf-master.zip
pyinstaller打包后的运行出现FileNotFoundError: [Errno 2] No such file or directory: '/tmp/.../astor/VERSION'
astor为0.8.1的bug,需要指定安装astor==0.8.0