• ubuntu18.04 +CUDA11.1 + pytorch1.8.1 环境配置


    PaddlePaddle 安装

    忽略这部分

    (paddle) PS G:\PaddleSeg> python
    Python 3.7.13 (default, Mar 28 2022, 08:03:21) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import paddle
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "F:\program\envs\paddle\lib\site-packages\paddle\__init__.py", line 25, in <module>
        from .framework import monkey_patch_variable
      File "F:\program\envs\paddle\lib\site-packages\paddle\framework\__init__.py", line 17, in <module>
        from . import random  # noqa: F401
      File "F:\program\envs\paddle\lib\site-packages\paddle\framework\random.py", line 16, in <module>
        import paddle.fluid as fluid
      File "F:\program\envs\paddle\lib\site-packages\paddle\fluid\__init__.py", line 36, in <module>
        from . import framework
      File "F:\program\envs\paddle\lib\site-packages\paddle\fluid\framework.py", line 35, in <module>
        from .proto import framework_pb2
      File "F:\program\envs\paddle\lib\site-packages\paddle\fluid\proto\framework_pb2.py", line 36, in <module>
        type=None),
      File "F:\program\envs\paddle\lib\site-packages\google\protobuf\descriptor.py", line 755, in __new__
        _message.Message._CheckCalledFromGeneratedFile()
    TypeError: Descriptors cannot not be created directly.
    If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
    If you cannot immediately regenerate your protos, some other possible workarounds are:
     1. Downgrade the protobuf package to 3.20.x or lower.
     2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
    
    More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
    >>> exit()
    (paddle) PS G:\PaddleSeg> pip install 'protobuf~=3.19.0'
    >>
    Collecting protobuf~=3.19.0
      Using cached protobuf-3.19.4-cp37-cp37m-win_amd64.whl (896 kB)
    Installing collected packages: protobuf
      Attempting uninstall: protobuf
        Found existing installation: protobuf 4.21.1
        Uninstalling protobuf-4.21.1:
          Successfully uninstalled protobuf-4.21.1
    Successfully installed protobuf-3.19.4
    (paddle) PS G:\PaddleSeg> python
    Python 3.7.13 (default, Mar 28 2022, 08:03:21) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import paddle
    >>> paddle.__version__
    '2.3.0'
    >>> exit()
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45

    上面自行忽略

    Ubuntu系统介绍

    显卡: 3090Ti
    在这里插入图片描述

    以下为必装的软件和美化包,稍后我将上传到百度网盘
    在这里插入图片描述参考
    2

    CUDA 下载

    在这里插入图片描述
    CUDA Toolkit Archive: https://developer.nvidia.cn/cuda-toolkit-archive
    找到CUDA11.1.0
    在这里插入图片描述

    在这里插入图片描述

    CUDA 安装

    https://blog.csdn.net/bemy1008/article/details/115939694

    https://blog.csdn.net/weixin_49223002/article/details/120509776

    勾掉驱动选项

    CUDNN 下载

    需要注册NVIDIA 账号

    sudo cp cuda/include/cudnn.h /usr/local/cuda/include/ 
    sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64/ 
    sudo chmod a+r /usr/local/cuda/include/cudnn.h 
    sudo chmod a+r /usr/local/cuda/lib64/libcudnn*
    
    
    • 1
    • 2
    • 3
    • 4
    • 5

    向日葵下载

    向日葵 for Linux
    https://sunlogin.oray.com/download/linux?type=personal

    WPS 下载

    WPS Office 2019 For Linux https://linux.wps.cn/

    常见问题

    Could not get lock /var/lib/dpkg/lock-frontend - open
    
    • 1

    Ubuntu下切换zsh和bash

    exec bash 
    
    
    • 1
    • 2
    exec zsh
    
    
    • 1
    • 2

    桌面美化

    ubuntu18.04美化主题(完整版)

    https://blog.csdn.net/qq_42011541/article/details/97002017

    https://www.cnblogs.com/majestyking/p/11523522.html
    https://zhuanlan.zhihu.com/p/37314255

    强调文本 强调文本

    加粗文本 加粗文本

    标记文本

    删除文本

    引用文本

    H2O is是液体。

    210 运算结果是 1024.

    VSCODE

    sudo dpkg -i code_1.49.3-1601661857_amd64.deb
    
    
    • 1
    • 2

    Miniconda

    参考博客:

    Ubuntu18.04安装miniconda3及使用

    https://blog.csdn.net/kkxi123456/article/details/103515422

    conda: command not found

    解决办法

    NotWritableError: The current user does not have write permissions to a required path

    https://blog.csdn.net/weixin_41804998/article/details/107499405

    pytorch

    https://blog.csdn.net/zzq060143/article/details/88042075?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link

    https://blog.csdn.net/zzq060143/article/details/88042075?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link

    安装第三方库超时

    https://zhuanlan.zhihu.com/p/61696526

    使用:---------:居中
    使用:----------居左
    使用----------:居右

    第一列第二列第三列
    第一列文本居中第二列文本居右第三列文本居左

    无法从“extensions.gnome.org”下载更新

    SmartyPants将ASCII标点字符转换为“智能”印刷标点HTML实体。例如:

    TYPEASCIIHTML
    Single backticks'Isn't this fun?'‘Isn’t this fun?’
    Quotes"Isn't this fun?"“Isn’t this fun?”
    Dashes-- is en-dash, --- is em-dash– is en-dash, — is em-dash

    搜狗输入法

    安装指南
    https://shurufa.sogou.com/linux/guide

    Markdown
    Text-to- HTML conversion tool
    Authors
    John
    Luke

    Flamshot截图工具

    https://zhuanlan.zhihu.com/p/166559142

    安装新字体

    https://blog.csdn.net/bitcarmanlee/article/details/79729634

    Markdown将文本转换为 HTML

    PDF阅读器

    OKULAR

    按F6 调出注释功能

    mp4播放器

    https://blog.51cto.com/u_15064656/4529118

    笔记软件-Boost Note

    看很多博客都在介绍,适合程序员的软件,但软件收费
    在这里插入图片描述

  • 相关阅读:
    网页游戏的设计规则
    软考网络工程师重难点总结分享~(3)
    面试:Android 签名校验机制 v1、v2、v3
    设计模式:访问者模式
    RedisJson发布官方性能报告,性能碾压ES和Mongo
    堆排序/priority_queue的底层数据结构
    工业设计的特点和流程
    传统算法与神经网络算法,神经网络算法有什么用
    Android studio报错help
    【WEB前端2024】3D智体编程:乔布斯3D纪念馆-第39课-时间通知-按秒刷新
  • 原文地址:https://blog.csdn.net/shuaijieer/article/details/125368597