conda使用错误的urls.txt路径

发布于 2025-02-07 03:36:43 字数 842 浏览 1 评论 0原文

当前试图使用conda Create -name< env_name>创建新的conda环境。 我正在在我已经进入的Linux服务器上制作此环境,并且该服务器上的用户在目录/home/<用户名中安装了Anaconda。

当我尝试创建conda环境时,我会发现错误:

NotWritableError: The current user does not have write permissions to a required path.
  path: /Users/<personal_username>/anaconda3/pkgs/urls.txt
  uid: 1004
  gid: 1004

If you feel that permissions on this path are set incorrectly, you can manually
change them by executing

  $ sudo chown 1004:1004 /Users/<personal_username>/anaconda3/pkgs/urls.txt

In general, it's not advisable to use 'sudo conda'.

我注意到的问题是,错误消息中的用户名与我的个人计算机上的用户名相对应,而不是在Linux服务器上。如何更改它使用的路径,以便使用Linux服务器上的路径而不是我的个人计算机上的路径?

如果我能提供任何其他有用的信息,请告诉我。

编辑:在我的个人计算机上的目录上,目录/users/&lt; personal_username&gt;/anaconda3不存在。

Currently trying to create a new conda environment using conda create --name <env_name>.
I am making this environment on a linux server that I have ssh'ed into, and my user on that server has anaconda installed in the directory /home/<username>/.

When I try to create the conda environment, I get the error:

NotWritableError: The current user does not have write permissions to a required path.
  path: /Users/<personal_username>/anaconda3/pkgs/urls.txt
  uid: 1004
  gid: 1004

If you feel that permissions on this path are set incorrectly, you can manually
change them by executing

  $ sudo chown 1004:1004 /Users/<personal_username>/anaconda3/pkgs/urls.txt

In general, it's not advisable to use 'sudo conda'.

The issue I've noted is that the username in the error message corresponds to my username on my personal computer instead of on the linux server. How can I change what path it uses so it uses the path on the linux server instead of the one on my personal computer?

If I can provide any other helpful information let me know.

Edit: On the directories on my personal computer, the directory /Users/<personal_username>/anaconda3 does not exist.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文