• [问题求助] CPU:2核心8GB 使用conda创建虚拟Python环境会有很大的几率失败,报错如下:(大于此规格目前正常)
    /home/ma-user/anaconda3/lib/python3.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (3.0.4) doesn't match a supported version! RequestsDependencyWarning) Collecting package metadata (current_repodata.json): done Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): failed # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File "/home/ma-user/anaconda3/lib/python3.7/site-packages/urllib3/response.py", line 443, in _error_catcher yield File "/home/ma-user/anaconda3/lib/python3.7/site-packages/urllib3/response.py", line 818, in read_chunked chunk = self._handle_chunk(amt) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/urllib3/response.py", line 762, in _handle_chunk value = self._fp._safe_read(amt) File "/home/ma-user/anaconda3/lib/python3.7/http/client.py", line 622, in _safe_read raise IncompleteRead(b''.join(s), amt) http.client.IncompleteRead: IncompleteRead(4223 bytes read, 6017 more expected) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ma-user/anaconda3/lib/python3.7/site-packages/requests/models.py", line 750, in generate for chunk in self.raw.stream(chunk_size, decode_content=True): File "/home/ma-user/anaconda3/lib/python3.7/site-packages/urllib3/response.py", line 623, in stream for line in self.read_chunked(amt, decode_content=decode_content): File "/home/ma-user/anaconda3/lib/python3.7/site-packages/urllib3/response.py", line 844, in read_chunked self._original_response.close() File "/home/ma-user/anaconda3/lib/python3.7/contextlib.py", line 130, in __exit__ self.gen.throw(type, value, traceback) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/urllib3/response.py", line 460, in _error_catcher raise ProtocolError("Connection broken: %r" % e, e) urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(4223 bytes read, 6017 more expected)', IncompleteRead(4223 bytes read, 6017 more expected)) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1079, in __call__ return func(*args, **kwargs) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 84, in _main exit_code = do_call(args, p) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 82, in do_call return getattr(module, func_name)(args, parser) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/cli/main_create.py", line 37, in execute install(args, parser, 'create') File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", line 265, in install should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]), File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 117, in solve_for_transaction should_retry_solve) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 158, in solve_for_diff force_remove, should_retry_solve) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 262, in solve_final_state ssc = self._collect_all_metadata(ssc) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/common/io.py", line 88, in decorated return f(*args, **kwds) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 415, in _collect_all_metadata index, r = self._prepare(prepared_specs) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 1011, in _prepare self.subdirs, prepared_specs, self._repodata_fn) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/core/index.py", line 228, in get_reduced_index repodata_fn=repodata_fn) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 105, in query_all result = tuple(concat(executor.map(subdir_query, channel_urls))) File "/home/ma-user/anaconda3/lib/python3.7/concurrent/futures/_base.py", line 598, in result_iterator yield fs.pop().result() File "/home/ma-user/anaconda3/lib/python3.7/concurrent/futures/_base.py", line 435, in result return self.__get_result() File "/home/ma-user/anaconda3/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result raise self._exception File "/home/ma-user/anaconda3/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 98, in <lambda> package_ref_or_match_spec)) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 110, in query self.load() File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 174, in load _internal_state = self._load() File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 248, in _load repodata_fn=self.repodata_fn) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 485, in fetch_repodata_remote_request timeout=timeout) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 546, in get return self.request('GET', url, **kwargs) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 533, in request resp = self.send(prep, **send_kwargs) File "/home/ma-user/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 686, in send r.content File "/home/ma-user/anaconda3/lib/python3.7/site-packages/requests/models.py", line 828, in content self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b'' File "/home/ma-user/anaconda3/lib/python3.7/site-packages/requests/models.py", line 753, in generate raise ChunkedEncodingError(e) requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(4223 bytes read, 6017 more expected)', IncompleteRead(4223 bytes read, 6017 more expected)) `$ /home/ma-user/anaconda3/bin/conda create -n py36 python=3.6.10 -y` environment variables: CIO_TEST=<not set> CONDA_DIR=/modelarts/authoring/notebook-conda CONDA_ROOT=/home/ma-user/anaconda3 FTP_PROXY=<set> HTTPS_PROXY=<set> HTTP_PROXY=<set> LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/nv idia/lib:/usr/local/nvidia/lib64:/usr/lib/x86_64-linux-gnu/ LIBRARY_PATH=/usr/local/cuda/lib64/stubs: MODELARTS_MODEL_PATH=/home/ma-user/infer/model/1 NO_PROXY=<set> PATH=/home/ma-user/anaconda3/envs/TensorFlow-2.1/bin:/home/ma-user/anaconda 3/envs/TensorFlow-2.1/bin:/usr/local/openmpi/bin:/usr/local/nvidia/bin :/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin :/sbin:/bin:/modelarts/authoring/notebook-conda/bin:/home/ma- user/modelarts-dev/ma- cli/bin:/modelarts/authoring/script/entrypoint/deps/ssh/bin:/home/ma- user/anaconda3/envs/TensorFlow-2.1/bin PYTHONPATH=/usr/local/seccomponent/lib:/home/ma-user/infer/model/1 REQUESTS_CA_BUNDLE=<not set> SCC_CONFIG_PATH=/home/ma-user/scc/kmc.conf SITE_PACKAGES_PATH=/home/ma-user/anaconda3/envs/TensorFlow-2.1/lib/python3.7/site- packages SSL_CERT_FILE=<not set> ftp_proxy=<set> http_proxy=<set> https_proxy=<set> no_proxy=<set> active environment : None user config file : /home/ma-user/.condarc populated config files : /home/ma-user/.condarc conda version : 4.8.2 conda-build version : not installed python version : 3.7.6.final.0 virtual packages : __glibc=2.27 base environment : /home/ma-user/anaconda3 (writable) channel URLs : cid:link_0 cid:link_2 cid:link_1 cid:link_3 cid:link_4 cid:link_5 cid:link_6 cid:link_7 package cache : /home/ma-user/anaconda3/pkgs /home/ma-user/.conda/pkgs envs directories : /home/ma-user/anaconda3/envs /home/ma-user/.conda/envs platform : linux-64 user-agent : conda/4.8.2 requests/2.22.0 CPython/3.7.6 Linux/4.18.0-147.5.1.6.h841.eulerosv2r9.x86_64 ubuntu/18.04.6 glibc/2.27 UID:GID : 1000:100 netrc file : None offline mode : False An unexpected error has occurred. Conda has prepared the above report.
  • [开发环境] [Notebook] notebook上如何用GPU训练
    训练yolov7,device输入参数默认是cpu,在cpu上训练。想改用GPU,device参数改成0,但是notebook运行报了错:请问可怎么解决?
  • [开发环境] 使用ma-cli进行镜像构建报错:connection error
    命令和报错信息: (python-3.7.10) [ma-user work]$ma-cli image build .ma/customize_from_ubuntu_18.04_to_modelarts/Dockerfile -swr hw03426922/only-conda:0.0.1 [+] Building 0.0s (0/0) error: failed to get status: rpc error: code = Unavailable desc = connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:1234: connect: connection refused"   Failed to build image, for details, see /home/ma-user/work/.ma/customize_from_ubuntu_18.04_to_modelarts/build_log.log. [ FAILED ] Build image hw03426922/only-conda:0.0.1 failed! 这是为什么呢?
  • [开发环境] notebook里如何修改Ctrl-B快捷键的行为?
    在Notebook里开了一个teminal, 然后打开了vim用Ctrl-F是往下翻页当想用Ctrl-B向上翻页时,发现是切换文件浏览器的隐藏和显示,所以,notebook里如何修改Ctrl-B快捷键的行为?
  • [技术干货] Jupyter Lab无法打开终端窗口的解决方法
    本地Anaconda使用pip install jupyterlab后使用jupyter-lab打开窗口创建Terminal出现错误Launcher Error、Unhandled error、Dismiss解决方案通过查询Anaconda窗口信息发现报错如下:Traceback (most recent call last):      File "e:\anaconda3\envs\pytorch1.6.0\lib\site-packages\tornado\web.py", line 1702, in _execute        result = method(*self.path_args, **self.path_kwargs)      File "e:\anaconda3\envs\pytorch1.6.0\lib\site-packages\tornado\web.py", line 3173, in wrapper        return method(self, *args, **kwargs)      File "e:\anaconda3\envs\pytorch1.6.0\lib\site-packages\jupyter_server\terminal\api_handlers.py", line 26, in post        name, _ = self.terminal_manager.new_named_terminal(**data)      File "e:\anaconda3\envs\pytorch1.6.0\lib\site-packages\terminado\management.py", line 319, in new_named_terminal        term = self.new_terminal(**kwargs)      File "e:\anaconda3\envs\pytorch1.6.0\lib\site-packages\terminado\management.py", line 171, in new_terminal        pty = PtyProcessUnicode.spawn(argv, env=env, cwd=options.get('cwd', None))      File "e:\anaconda3\envs\pytorch1.6.0\lib\site-packages\winpty\ptyprocess.py", line 89, in spawn        'executable: %s.' % command    FileNotFoundError: The command was not found or was not executable: powershell.exe.可以发现报错的原因是JupyterLab在创建Ternimal时无法定位到PowerShell。为此,我通过CMD启用PowerShell仍然失败,如下所示:因此怀疑时是环境变量中缺少`PowerShell`路径,因此我找到`PowerShell`路径并添加至环境变量,如下所示完成后在CMD中输入PowerShell即可进入PowerShell模式此时打开Anaconda启动JupyterLab,即可正常启动Terminal,如下所示:总结如果在Win10平台使用JupyterLab无法正常启动Terminal且报错为FileNotFoundError: The command was not found or was not executable: powershell.exe.,只需要在环境变量中添加PowerShell路径
  • [开发环境] 学生求助,想问一下notebook中有内置NVDIA的驱动吗
    如题,notebook好像没有办法自己装驱动,非常感谢
  • [问题求助] kernel Restarting是什么意思
    小白求助,使用notebook老是碰到以下问题
  • [问题求助] notebook,使用PIL库 无法显示图片
    如图如图如图如图如图
  • [开发环境] 使用pip install时出现“没有空间”的错误
    使用pip install时出现“没有空间”的错误
  • [开发环境] 如何在Notebook中安装外部库?
    如何在Notebook中安装外部库?
  • [开发环境] 在Notebook中,如何访问其他帐号的OBS桶?
    在Notebook中,如何访问其他帐号的OBS桶?
  • [开发环境] 如何对OBS的文件重命名?
    Notebook可以访问OBS中的文件,如果对文件进行重命名?
  • [开发环境] Notebook停止或者重启后,“/cache”下的文件还存在么?
    Notebook停止或者重启后,“/cache”下的文件还存在么?
  • [开发环境] 报错内存已满或者“CUDA error: out of memory”怎么办?
    报错内存已满或者“CUDA error: out of memory”怎么办? 有没有什么办法?
  • [开发环境] kernel Restarting怎么回事
    kernel Restarting怎么回事?有什么方法?