草庐IT

global-require

全部标签

Anaconda prompt中创建虚拟环境,安装包,配置requirements.txt

1.创建虚拟环境按下开始建,点击如图图标,打开Anaconda终端AnacondaPrompt2 查看当前有哪些虚拟环境,执行>>condaenvlist。可以看到新安装的Anaconda只有一个base环境,base是一个大环境,类似于一个很大的房子,但是没有房间,当我们每创建一个环境就相当于在这个房子里面建一个房间,房间是隔绝互不干扰的,在房间里可以安装我们所需要的包,管理方便,如图所示。创建新的空的虚拟环境:condacreate-n环境名字(英文)python=x.x(python版本),如图是我创建的名字为tensorflow,python版本为3.6的环境。(创建新环境并安装所需要

Requirement already satisfied解决办法

遇到的问题:当使用电脑中安装的Python3.7的IDLE去运行某一个python文件时,会出现ModuleNotFoundError:Nomodulenamed'numpy'的报错,需要安装numpy库。而当使用win+R快捷键打开cmd,输入pipinstallnumpy命令时,却得到Requirementalreadysatisfied:numpyind:programminganaconda3libsite-packages(1.16.5)的提示,告诉我们已经有numpy存在于d:programminganaconda3libsite-packages(1.16.5)路径中,但是我们在

Requirement already satisfied解决办法

遇到的问题:当使用电脑中安装的Python3.7的IDLE去运行某一个python文件时,会出现ModuleNotFoundError:Nomodulenamed'numpy'的报错,需要安装numpy库。而当使用win+R快捷键打开cmd,输入pipinstallnumpy命令时,却得到Requirementalreadysatisfied:numpyind:programminganaconda3libsite-packages(1.16.5)的提示,告诉我们已经有numpy存在于d:programminganaconda3libsite-packages(1.16.5)路径中,但是我们在

go cobra Error: required flag(s) "pkg-name" not set

Cobra是一个Golang包,它提供了简单的接口来创建命令行程序。同时,Cobra也是一个应用程序,用来生成应用框架,从而开发以Cobra为基础的应用。使用cobrainit命令初始化程序框架,但是发现提示错误:Error:requiredflag(s)"pkg-name"notset在查看官方文档后发现Cobra版本更新后需要增加一个必须参数--pkg-name,就是main函数默认import的包。UpdatestotheCobrageneratorhavenowdecoupleditfromtheGOPATH.Assuch--pkg-nameisrequired.于是使用如下命令初始化

go cobra Error: required flag(s) "pkg-name" not set

Cobra是一个Golang包,它提供了简单的接口来创建命令行程序。同时,Cobra也是一个应用程序,用来生成应用框架,从而开发以Cobra为基础的应用。使用cobrainit命令初始化程序框架,但是发现提示错误:Error:requiredflag(s)"pkg-name"notset在查看官方文档后发现Cobra版本更新后需要增加一个必须参数--pkg-name,就是main函数默认import的包。UpdatestotheCobrageneratorhavenowdecoupleditfromtheGOPATH.Assuch--pkg-nameisrequired.于是使用如下命令初始化

已解决ERROR: Could not find a version that satisfies the requirement opencv-python4.5.5.62A (from versi

已解决DEPRECATION:Python2.7reachedtheendofitslifeonJanuary1st,2020.PleaseupgradeyourPythonasPython2.7isnolongermaintained.pip21.0willdropsupportforPython2.7inJanuary2021.MoredetailsaboutPython2supportinpipcanbefoundathttps://pip.pypa.io/en/latest/development/release-process/#python-2-supportpip21.0will

已解决ERROR: Could not find a version that satisfies the requirement opencv-python4.5.5.62A (from versi

已解决DEPRECATION:Python2.7reachedtheendofitslifeonJanuary1st,2020.PleaseupgradeyourPythonasPython2.7isnolongermaintained.pip21.0willdropsupportforPython2.7inJanuary2021.MoredetailsaboutPython2supportinpipcanbefoundathttps://pip.pypa.io/en/latest/development/release-process/#python-2-supportpip21.0will

windows 安装pycocotools:ERROR: Could not build wheels for pycocotools, which is required to install py

问题描述:pycocotools是什么?即pythonapitoolsofCOCO。但是使用pipinstall时经常会有异常,但是安装失败pip安装方法:pipinstallpycocotools==2.0.0orpipinstallpycocotools-windows但是,我经常会安装不成功,报以下错误:大概就是我缺一些依赖(windowsOS下)ERROR:Couldnotbuildwheelsforpycocotools,whichisrequiredtoinstallpyproject.toml-basedprojects使用以下命令安装:pipinstallpycocotools

windows 安装pycocotools:ERROR: Could not build wheels for pycocotools, which is required to install py

问题描述:pycocotools是什么?即pythonapitoolsofCOCO。但是使用pipinstall时经常会有异常,但是安装失败pip安装方法:pipinstallpycocotools==2.0.0orpipinstallpycocotools-windows但是,我经常会安装不成功,报以下错误:大概就是我缺一些依赖(windowsOS下)ERROR:Couldnotbuildwheelsforpycocotools,whichisrequiredtoinstallpyproject.toml-basedprojects使用以下命令安装:pipinstallpycocotools

Microsoft Visual C++ 14.0 is required.

MicrosoftVisualC++14.0isrequired.Getitwith“MicrosoftVisualC++BuildTools当我们安装绝大部分python包的时候可以通过pipinstall或者condainstall解决,但是任然有些包是安装不了的,比如我的就会报MicrosoftVisualC++14.0isrequired.Getitwith“MicrosoftVisualC++BuildTools这样的错误。1、直接说解决方法condainstalllibpythonm2w64-toolchain-cmsys2下载这个包可以解决C++依赖的问题,而不用向网上绝大数博客