在复现一个提取图像特征的上古项目Large-scale-VRD.pytorch时,遇到一堆问题。究其原因,是环境没配好。记录一下。以下error是过程中遇到的,不重要。
session.run(output_feed, input_feed)
AttributeError: The vocab attribute was removed from KeyedVector in Gensim 4
ImportError: numpy.core.multiarray failed to import
ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instea
AttributeError: module 'numpy' has no attribute 'log'
InvalidSchema: Missing dependencies for SOCKS support.
Cache entry deserialization failed, entry ignored
ImportError: /home/ubuntu/D/lizhigang/pycharm_projects/Large-Scale-VRD.pytor
AttributeError: 'version_info' object has no attribute '__version__'
AttributeError: module 'numpy.random' has no attribute 'default_rng'
RuntimeError: module compiled against API version 0xb but this version of nu
ModuleNotFoundError: No module named 'dataclasses'
cuda=0.9 torch=0.4.1 torchvision=0.2.0 numpy=1.17.0 gensim=3.8.0
版本很重要,不然各种问题。
其他模块按照readme安装就行了。