python 安装 gz,从.tar.gz将模块安装到Anaconda
When I want to install modules to Anaconda, I run conda install. However, now I have a .tar.gz file and want to install this. How to do?解决方案There are several way to achieve this, I'm describing one he
When I want to install modules to Anaconda, I run conda install. However, now I have a .tar.gz file and want to install this. How to do?
解决方案
There are several way to achieve this, I'm describing one here, which should be relatively straight forward, even if your defualt "python" variable is not anaconda's.
Check what is your desired anaconda environment (if you're not sure what does this mean, it probably means that you are using root, the default environment)
Run: conda info --envs to see the path where your environment is installed
Go to that path, and find the absolute path to python.exe, for example:
"C:\Program Files\Anaconda3\python.exe"
Now, run the following command:
-m pip install
for example:
C:\Program Files\Anaconda3\python.exe -m pip install c:\mymodule\great.tar.gz
Note that can be relative, absolute and even an online link.
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐



所有评论(0)