在Linux下安装VSCode、VS2015安装错误以及其它没用的杂项

当时是为了 用C#拖界面。

VS2015安装出现的问题
https://blog.csdn.net/u014710355/article/details/120432770
C:\ProgramData\Package Cache\{fbd61617-a49b-4301-be08-e78cf763b2f5}

C:\用户\Lenovo\AppData\Local\Temp\20220421_170921_{39A807A6-0BC8-34DC-A275-D1E9DBB9BBF6}\packages\
JavaScript_ProjectSystem\JavaScript_ProjectSystem.msi

https://blog.csdn.net/u014710355/article/details/120432770

在第三个选项提供搜索包的位置把路径改为安装包的位置在回车就可以解决.
例如我下载的是vs2015 ISO镜像就是在G盘 路径就是G:\ 回车 点击重试 就会自动检索了

卸载程序:
D:\vs2015.pro_chs>vs_professional.exe /Uninstall /force


//--  C# UI配置
https://blog.csdn.net/qq_38628970/article/details/91041879



VS自带chart控件应用说明
https://www.bilibili.com/read/cv10091667

瞎基尔看的

机械杂质检测标准:GB/T511-2010
颗粒度:油品单位体积内不同粒径的 固体微粒的数目浓度,
单位实际小于40μm以下的颗粒物是肉眼无法可见的,而且比40μm更小的颗粒物对液压元件,或者轴承来说有灾难性影响。

汽轮机润滑油 颗粒度大于8级,认为不合格。
定期取样对

当时用navicat 写了几句sql存储语句

Navicat   导出存储过程
https://www.cnblogs.com/Marydon20170307/p/15867104.html

navicat导入sql文件
答:右击创建的数据库,然后选运行SQL文件



		  DECLARE dt_epc,dt_ctm,dt_utm datetime DEFAULT  NOW();
	    DECLARE n int DEFAULT 0;

			DECLARE nn VARCHAR(2000) DEFAULT 0;
			DECLARE bb CHAR(2) DEFAULT 0;
			
        WHILE(n<10) DO
					set dt_epc =  DATE_ADD(dt_epc, INTERVAL -1 SECOND); 
					set dt_ctm = DATE_ADD(dt_ctm, INTERVAL -1 SECOND); 
					set dt_utm = DATE_ADD(dt_utm, INTERVAL -1 SECOND); 
					
					# set nn =  call randzimu();   这是调用的函数语句;不是存储过程不能用call
					#set nn =  randzimu(8);
					set bb = randzimu(15);

					INSERT INTO t_so_id(
					so_id,
					code_id,
					nor_id,
					int_id,
					bb,
					ctm,
					utm) 
					VALUES(
					n,
					FLOOR(1+(RAND()*6)),
					FLOOR(1+(RAND()*6)),
					FLOOR(100+(RAND()*10)),
					FLOOR(1000+(RAND()*100)),
					dt_ctm,
					dt_utm);  

        set n = n + 1;
        END WHILE;#Routine body goes here...

当时尝试在docker中装python项目的记录(没卵用,自己留作回忆那段时间干了啥)

SGP4 是个模型

The "gopls" command is not available. Run "go install -v golang.org/x/tools/gopls@latest" to install.


pip install pyqt5==5.12.3 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install pyqtwebengine==5.12.1 -i https://pypi.tuna.tsinghua.edu.cn/simple

======================
(MySecondEnv) root@2c46522715c1:/# spyder
Traceback (most recent call last):
  File "/root/anaconda3/envs/MySecondEnv/bin/spyder", line 11, in <module>
    sys.exit(main())
  File "/root/anaconda3/envs/MySecondEnv/lib/python3.7/site-packages/spyder/app/start.py", line 233, in main
    from spyder.app import mainwindow
  File "/root/anaconda3/envs/MySecondEnv/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 48, in <module>
    from qtpy.compat import from_qvariant
  File "/root/anaconda3/envs/MySecondEnv/lib/python3.7/site-packages/qtpy/compat.py", line 10, in <module>
    from .QtWidgets import QFileDialog
  File "/root/anaconda3/envs/MySecondEnv/lib/python3.7/site-packages/qtpy/QtWidgets.py", line 36, in <module>
    from PyQt5.QtWidgets import *
ImportError: libGL.so.1: cannot open shared object file: No such file or directory



(MySecondEnv) root@2c46522715c1:/# pip install "pyqt5<5.13" -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
spyder 5.1.5 requires pyqtwebengine<5.13, which is not installed.

错误:pip的依赖解析器目前没有考虑到已安装的所有包。此行为是以下依赖冲突的根源。
Spyder 5.1.5需要pyqtwebengine<5.13,没有安装。

pip install "pyqtwebengine<5.13" -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

======================
  File "/root/anaconda3/envs/MySecondEnv/bin/spyder", line 11, in <module>
    sys.exit(main())
  File "/root/anaconda3/envs/MySecondEnv/lib/python3.7/site-packages/spyder/app/start.py", line 233, in main
    from spyder.app import mainwindow
  File "/root/anaconda3/envs/MySecondEnv/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 42, in <module>
    requirements.check_qt()
  File "/root/anaconda3/envs/MySecondEnv/lib/python3.7/site-packages/spyder/requirements.py", line 47, in check_qt
    if parse_version(actual_ver) < parse_version(required_ver):
  File "/root/anaconda3/envs/MySecondEnv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 120, in parse_version
    return packaging.version.Version(v)
  File "/root/anaconda3/envs/MySecondEnv/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/version.py", line 264, in __init__
    match = self._regex.search(version)
TypeError: expected string or bytes-like object

======================
pip check



经过数遍尝试: 未能在容器里成功安装spyder

在虚拟机下的Ubuntu装VSCode

======================================================================
现在尝试安装vscode
方式一:

wget https://az764295.vo.msecnd.net/stable/7ba55c5860b152d999dda59393ca3ebeb1b5c85f/code-stable-code_1.7.2-1479766213_amd64.tar.gz
发现下载过慢。
使用 网页点击下载也过慢
https://code.visualstudio.com/docs/?dv=linux64
换成国内镜像下载
https://vscode.cdn.azure.cn/docs/?dv=linux64
原来的链接
https://az764295.vo.msecnd.net/stable/30d9c6cd9483b2cc586687151bcbcd635f373630/code-stable-x64-1655263335.tar.gz
现在的链接
https://vscode.cdn.azure.cn/stable/30d9c6cd9483b2cc586687151bcbcd635f373630/code-stable-x64-1655263335.tar.gz

2、解压
tar jxcv code-stable-code_1.7.2-1479766213_amd64.tar.gz

3、移动到/usr/local/目录下
mv VSCode-linux-x64 /usr/local/

4、给code添加可执行权限
chmod +x /usr/local/VSCode-linux-x64/code

5、运行vscode
/usr/local/VSCode-linux-x64/code

6、复制一个图标
cp /usr/local/VSCode-linux-x64/resources/app/resources/linux/code.png /usr/share/icons/

vim /usr/share/applications/VSCode.desktop

cp /usr/share/applications/VSCode.desktop /home/lxk/Desktop


方式二:
命令行装VSCode
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt update
sudo apt install code

======================================================================


 docker exec -it creat_test /bin/bash -c "cd root && ./fits2bmp" 'COI1/file-list.txt'  'COI2/'

你可能感兴趣的:(VScode,linux,vscode,运维)