ollama 在Windows中选择不同的安装位置的能力

rdlzhqv9  于 2个月前  发布在  Windows
关注(0)|答案(2)|浏览(32)

你好,
如果我们能在使用Windows安装程序时更改安装路径,那就太好了。如果已经有某种方法可以实现,请告诉我。
谢谢!

afdcj2ne

afdcj2ne1#

After installing Ollama, locate the file directory and move the entire Ollama file to the target directory. Then, find the variable value of Ollama in the system environment variable and change it to the full path after the move. That's it

voj3qocg

voj3qocg2#

尽管SYTBOTW提到了一个指向Ollama安装位置的环境变量,但我实际上没有找到这样的变量。OLLAMA_MODELS存在,但它用于控制模型blob的位置。
到目前为止,我找到了两种可行的方法,并将其记录下来,以防对其他人有所帮助。

  • 找到文件目录并将其移动到所需位置,然后将新目录添加到系统路径中,以便找到Ollama可执行文件。
  • 使用winget进行一次性安装(每次)和更新Ollama(每次需要更新时)。确保在两个命令中都使用位置标志。如果没有,更新将重置为默认位置。
  • winget install -i -e --id Ollama.Ollama --location D:\Apps\Ollama
  • winget upgrade -i -e --id Ollama.Ollama --location D:\Apps\Ollama

第二种方法是我首选的。请注意,-i标志使安装过程具有交互性。删除它以进行无人值守安装。

相关问题