\\wsl.localhost\Ubuntu\home\lia\miniconda3\envs\py37\lib\python3.7\site-packages\torch\lib 转换斜杠方向
时间: 2024-04-07 15:27:14 浏览: 105
路径中的斜杠方向是Windows系统下的路径表示方式,而在Linux系统中,路径使用的是正斜杠(/)作为分隔符。如果你想将该路径转换为Linux系统下的表示方式,可以将所有的反斜杠(\)替换为正斜杠(/),即将路径修改为:/wsl.localhost/Ubuntu/home/lia/miniconda3/envs/py37/lib/python3.7/site-packages/torch/lib。
相关问题
cannot import name 'imread' from 'scipy.misc' (F:\anaconda3\envs\pytorch\lib\site-packages\scipy\misc\__init__.py
这个错误是由于在scipy.misc中无法导入imread函数导致的。根据引用中提供的错误信息,可能是因为scipy版本的问题。你可以尝试升级pip,可以使用以下命令进行升级:python -m ensurepip和python -m pip install --upgrade pip。另外,你还可以检查一下scipy的版本是否过低,如果是的话,可以尝试升级scipy来解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [wsl子系统问题](https://blog.csdn.net/m0_54720387/article/details/127341261)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [pytorch常见的错误](https://blog.csdn.net/qq_40609242/article/details/105965382)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
wsl2base环境中创建新环境提示:Collecting package metadata (current_repodata.json): - ERROR conda.auxlib.logz:stringify(155): [Errno Expecting value] : 0 Traceback (most recent call last): File "/home/user/anaconda3/lib/python3.9/site-packages/requests/models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "/home/user/anaconda3/lib/python3.9/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/home/user/anaconda3/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/home/user/anaconda3/lib/python3.9/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/user/anaconda3/lib/python3.9/site-packages/conda/auxlib/logz.py", line 149, in stringify requests_models_Response_builder(builder, obj) File "/home/user/anaconda3/lib/python3.9/site-packages/conda/auxlib/logz.py", line 125, in requests_models_Response_builder resp = response_object.json() File "/home/user/anaconda3/lib/python3.9/site-packages/requests/models.py", line 917, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: [Errno Expecting value] : 0 ERROR conda.auxlib.logz:stringify(155): [Errno Expecting value] : 0
这个错误通常是由于网络问题导致的,建议您检查一下网络是否连接正常,或者尝试更换conda源。您可以尝试使用以下命令更换conda源:
```
conda config --set show_channel_urls yes
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set channel_priority strict
```
然后再尝试创建新环境。
阅读全文