安装

ERROR: Could not find a version that satisfies the requirement tensorflow==2.8.0 (from versions: none)

ERROR: No matching distribution found for tensorflow==2.8.0
how to solve this in Mac

可以试试使用docker安装tensorflow镜像。

conda install cudnn cudatoolkit 也可以安装CUDA,不一定需要安装CUDA的exe软件包。只是需要安装显卡驱动即可。

无法正常启动jupyter和使用,版本是anaconda2022-10,创建虚拟环境之后,进入jupyter之后无法查看文件夹,终端报错:

C:\Users\myname\anaconda3\envs\d2l\lib\site-packages\jupyter_server\base\handlers.py:608: UserWarning: The Tornado web application does not have an 'identity_provider' defined in its settings. In future releases of jupyter_server, this will be a required key for all subclasses of `JupyterHandler`. For an example, see the jupyter_server source code for how to add an identity provider to the tornado settings: https://github.com/jupyter-server/jupyter_server/blob/v2.0.0/jupyter_server/serverapp.py#L242
  if type(self.identity_provider) is IdentityProvider and mod_obj.__name__ != __name__:
[E 23:31:29.991 NotebookApp] Error unpacking user from cookie: Extra data: line 1 column 3 (char 2)
[W 23:31:29.992 NotebookApp] Clearing invalid/expired login cookie username-localhost-5555
[W 23:31:29.993 NotebookApp] [jupyter_nbextensions_configurator] wrote error: 'Forbidden'
    Traceback (most recent call last):
      File "C:\Users\myname\anaconda3\envs\d2l\lib\site-packages\tornado\web.py", line 1769, in _execute
        result = await result  # type: ignore
      File "C:\Users\myname\anaconda3\envs\d2l\lib\site-packages\jupyter_server\base\handlers.py", line 751, in prepare
        await super().prepare()
      File "C:\Users\myname\anaconda3\envs\d2l\lib\site-packages\jupyter_server\base\handlers.py", line 643, in prepare
        return web.authenticated(lambda _: super().prepare())(self)
      File "C:\Users\myname\anaconda3\envs\d2l\lib\site-packages\tornado\web.py", line 3289, in wrapper
        url = self.get_login_url()
      File "C:\Users\myname\anaconda3\envs\d2l\lib\site-packages\jupyter_server\base\handlers.py", line 783, in get_login_url
        raise web.HTTPError(403)
    tornado.web.HTTPError: HTTP 403: Forbidden