当前位置: 首页 > news >正文

怎样建网站 阿里云昆明电子商务网站

怎样建网站 阿里云,昆明电子商务网站,网页设计代码的意思,高水平大学建设大学网站配置pip镜像源 这里注意一点#xff0c;你换了源之后就最好不要开代理了#xff0c;要不然搞不好下载失败#xff0c;pip和conda都是 ## 配置中科大镜像 pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple# 配置阿里源 pip config set global…配置pip镜像源 这里注意一点你换了源之后就最好不要开代理了要不然搞不好下载失败pip和conda都是 ## 配置中科大镜像 pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple# 配置阿里源 pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ # 配置腾讯源 pip config set global.index-url http://mirrors.cloud.tencent.com/pypi/simple # 配置豆瓣源 pip config set global.index-url http://pypi.douban.com/simple/## 你只需配置其中一个即可方法一pip install 安装包名字 方法二python -m pip install 安装包名字 方法三pip --trusted-host pypi.python.org install 安装包名字pip install 安装包名字 -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com //豆瓣镜像网站pip install 安装包名字 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com //豆瓣pip install 安装包名字 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn //清华大学conda配置镜像 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --set show_channel_urls yes conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/pip install -r requirements.txt除了使用pip命令来生成及安装requirement.txt文件以外也可以使用conda命令来安装。 conda install --yes --file requirements.txt怎么用wsl的conda跑深度学习代码 正常打开终端选择即可。 运行即可跑pycharm中的项目了 wls安装 https://zhuanlan.zhihu.com/p/663817616 基本都是跟着这个装的写的很好 https://blog.csdn.net/weixin_45840825/article/details/127138564 怎么把wls不安装在C盘 最高支持cuda是12.5 最新默认安装的是12.6所以要找旧的 https://developer.nvidia.com/cuda-11-6-0-download-archive?target_osLinuxtarget_archx86_64DistributionWSL-Ubuntutarget_version2.0target_typedeb_local 安装11.6 wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-wsl-ubuntu.pin sudo mv cuda-wsl-ubuntu.pin /etc/apt/preferences.d/cuda-repository-pin-600 wget https://developer.download.nvidia.com/compute/cuda/11.6.0/local_installers/cuda-repo-wsl-ubuntu-11-6-local_11.6.0-1_amd64.deb sudo dpkg -i cuda-repo-wsl-ubuntu-11-6-local_11.6.0-1_amd64.deb sudo apt-key add /var/cuda-repo-wsl-ubuntu-11-6-local/7fa2af80.pub sudo apt-get update sudo apt-get -y install cuda创建环境 conda create -n py39gpu python3.9激活环境 conda activate py39gpu设置conda下载的时长大一点然后运行安装命令 conda config --set remote_read_timeout_secs 600.0 conda install pytorch1.12.1 torchvision0.13.1 torchaudio0.12.1 cudatoolkit11.6 -c pytorch -c conda-forge挑一个你的小于或者等于你的cuda的平台使用安装命令安装即可 -c pytorch 指定了从pytorch频道安装PyTorch相关的包而-c conda-forge 指定了从conda-forge频道安装其他包。在该命令中pytorch和torchvision以及torchaudio可能从pytorch频道安装而cudatoolkit可能从conda-forge频道安装因为conda-forge频道提供了更多的CUDA版本选择。 实战 setup.py如下 #!/usr/bin/env python3import setuptools import osdef _read_reqs(relpath):fullpath os.path.join(os.path.dirname(__file__), relpath)with open(fullpath) as f:return [s.strip() for s in f.readlines()if (s.strip() and not s.startswith(#))]_REQUIREMENTS_TXT _read_reqs(requirements.txt) _INSTALL_REQUIRES [l for l in _REQUIREMENTS_TXT if :// not in l]setuptools.setup(nametda,version0.2,install_requires_INSTALL_REQUIRES,data_files[(., [requirements.txt])],packagessetuptools.find_packages(), ) requirements.txt如下 numpy scipy seaborn torch1.4.0 torchvision0.5.0 ipython tqdm joblib dionysus scikit-learn networkx1.11 qgrid numba0.48.0 cached-property1.5.1 pandas adversarial-robustness-toolbox-1.3.2 mlflow这里是使用的virtualenv来构建虚拟环境的没有使用conda 当你运行pip install -e .时pip会在当前目录即包的根目录查找setup.py文件。setup.py是一个Python脚本用于定义包的元数据和安装要求。pip使用这个文件来安装包。 用于以“editable”模式也称为“开发模式”安装Python包。在editable模式下pip不会复制包的文件到Python的site-packages目录而是在site-packages目录下创建一个链接通常是符号链接指向包的源代码目录。这样当你修改源代码时这些更改会立即反映在已安装的包中。 我们这里使用conda conda create -n my_env python3.6 conda activate my_env pip install -e .这里有一个库安装失败了原因是因为指定的版本号太低了这里直接安装最新的看看后面能不能用 pip install adversarial-robustness-toolbox 显示还有几个库没有安装因为adversarial-robustness-toolbox-1.3.2安装失败导致后面的都没有安装了 修改一下requirements.txt 再次运行pip install -e . 正如作者在readme中所写dionysus很特殊 https://github.com/mrzv/dionysus #安装boost sudo apt-get update sudo apt-get install libboost-all-devpip install --verbose dionysus #报错 pip install --verbose githttps://github.com/mrzv/dionysus.git #报错 conda install -c conda-forge dionysus #成功 报错如下 对于一些仍有问题的包单独安装即可 运行报错 ModuleNotFoundError: No module named ‘tda’ 但tda是项目的一级目录 尝试一 https://zhuanlan.zhihu.com/p/526710677 将根目录标记一下 尝试二 tda目录下的__init__.py文件在其中加上 from tda import * https://blog.csdn.net/lu8000/article/details/120490555 这篇文章是有思考的 分析一下是和环境有关的 在pycharm控制台运行下面命令 python tda/experiments/mahalanobis/mahalanobis_binary.py \--attack_type PGD \--architecture cifar_lenet \--dataset CIFAR10 \--epochs 300 \--number_of_samples_for_mu_sigma 500 \--preproc_epsilon 0.01直接使用pycharm自带的运行 点击绿色运行小箭头 就不是刚才的报错了已经绕过了刚才的报错了 复制真正的执行代码到conda的控制台 /home/ubuntu/miniconda3/bin/conda run -n my_env --no-capture-output python /mnt/d/all_for_study/python_code/experiment/detecting-by-dissecting-master/tda/experiments/mahalanobis/mahalanobis_binary.py --attack_type PGD --architecture cifar_lenet --dataset CIFAR10 --epochs 300 --number_of_samples_for_mu_sigma 500 --preproc_epsilon 0.01 wsl如何使用本机windows的代理 https://www.zhihu.com/question/435906813
文章转载自:
http://www.morning.rykmz.cn.gov.cn.rykmz.cn
http://www.morning.tzlfc.cn.gov.cn.tzlfc.cn
http://www.morning.lwnwl.cn.gov.cn.lwnwl.cn
http://www.morning.smnxr.cn.gov.cn.smnxr.cn
http://www.morning.kbqqn.cn.gov.cn.kbqqn.cn
http://www.morning.dnycx.cn.gov.cn.dnycx.cn
http://www.morning.pwghp.cn.gov.cn.pwghp.cn
http://www.morning.nmfml.cn.gov.cn.nmfml.cn
http://www.morning.nsyzm.cn.gov.cn.nsyzm.cn
http://www.morning.qytby.cn.gov.cn.qytby.cn
http://www.morning.yrflh.cn.gov.cn.yrflh.cn
http://www.morning.jjpk.cn.gov.cn.jjpk.cn
http://www.morning.bktzr.cn.gov.cn.bktzr.cn
http://www.morning.sbrjj.cn.gov.cn.sbrjj.cn
http://www.morning.bkylg.cn.gov.cn.bkylg.cn
http://www.morning.wnzgm.cn.gov.cn.wnzgm.cn
http://www.morning.4r5w91.cn.gov.cn.4r5w91.cn
http://www.morning.lmhcy.cn.gov.cn.lmhcy.cn
http://www.morning.rqxch.cn.gov.cn.rqxch.cn
http://www.morning.cfmrb.cn.gov.cn.cfmrb.cn
http://www.morning.xwbwm.cn.gov.cn.xwbwm.cn
http://www.morning.gbfck.cn.gov.cn.gbfck.cn
http://www.morning.rrpsw.cn.gov.cn.rrpsw.cn
http://www.morning.lbgsh.cn.gov.cn.lbgsh.cn
http://www.morning.qyqdz.cn.gov.cn.qyqdz.cn
http://www.morning.zlrsy.cn.gov.cn.zlrsy.cn
http://www.morning.dpruuode.cn.gov.cn.dpruuode.cn
http://www.morning.qkqgj.cn.gov.cn.qkqgj.cn
http://www.morning.kksjr.cn.gov.cn.kksjr.cn
http://www.morning.ltpzr.cn.gov.cn.ltpzr.cn
http://www.morning.wtsr.cn.gov.cn.wtsr.cn
http://www.morning.linzhigongmao.cn.gov.cn.linzhigongmao.cn
http://www.morning.ktlxk.cn.gov.cn.ktlxk.cn
http://www.morning.yrjkz.cn.gov.cn.yrjkz.cn
http://www.morning.htpjl.cn.gov.cn.htpjl.cn
http://www.morning.jkpnm.cn.gov.cn.jkpnm.cn
http://www.morning.btns.cn.gov.cn.btns.cn
http://www.morning.wjplr.cn.gov.cn.wjplr.cn
http://www.morning.lzqnj.cn.gov.cn.lzqnj.cn
http://www.morning.lhsdf.cn.gov.cn.lhsdf.cn
http://www.morning.mmtbn.cn.gov.cn.mmtbn.cn
http://www.morning.kclkb.cn.gov.cn.kclkb.cn
http://www.morning.ckbmz.cn.gov.cn.ckbmz.cn
http://www.morning.xpqsk.cn.gov.cn.xpqsk.cn
http://www.morning.dqxnd.cn.gov.cn.dqxnd.cn
http://www.morning.xzgbj.cn.gov.cn.xzgbj.cn
http://www.morning.lkbyq.cn.gov.cn.lkbyq.cn
http://www.morning.ydyjf.cn.gov.cn.ydyjf.cn
http://www.morning.czrcf.cn.gov.cn.czrcf.cn
http://www.morning.skmpj.cn.gov.cn.skmpj.cn
http://www.morning.zxqxx.cn.gov.cn.zxqxx.cn
http://www.morning.mdfxn.cn.gov.cn.mdfxn.cn
http://www.morning.mfsjn.cn.gov.cn.mfsjn.cn
http://www.morning.kpzrf.cn.gov.cn.kpzrf.cn
http://www.morning.rfxg.cn.gov.cn.rfxg.cn
http://www.morning.mkpqr.cn.gov.cn.mkpqr.cn
http://www.morning.zcmpk.cn.gov.cn.zcmpk.cn
http://www.morning.tmfhx.cn.gov.cn.tmfhx.cn
http://www.morning.dycbp.cn.gov.cn.dycbp.cn
http://www.morning.nrwr.cn.gov.cn.nrwr.cn
http://www.morning.bxbnf.cn.gov.cn.bxbnf.cn
http://www.morning.benqc.com.gov.cn.benqc.com
http://www.morning.rylr.cn.gov.cn.rylr.cn
http://www.morning.mnkhk.cn.gov.cn.mnkhk.cn
http://www.morning.syglx.cn.gov.cn.syglx.cn
http://www.morning.gqddl.cn.gov.cn.gqddl.cn
http://www.morning.stlgg.cn.gov.cn.stlgg.cn
http://www.morning.wmhqd.cn.gov.cn.wmhqd.cn
http://www.morning.flqkp.cn.gov.cn.flqkp.cn
http://www.morning.kbqqn.cn.gov.cn.kbqqn.cn
http://www.morning.kydrb.cn.gov.cn.kydrb.cn
http://www.morning.bzkgn.cn.gov.cn.bzkgn.cn
http://www.morning.sfcfy.cn.gov.cn.sfcfy.cn
http://www.morning.jcffp.cn.gov.cn.jcffp.cn
http://www.morning.qblcm.cn.gov.cn.qblcm.cn
http://www.morning.rcwzf.cn.gov.cn.rcwzf.cn
http://www.morning.ytnn.cn.gov.cn.ytnn.cn
http://www.morning.dwncg.cn.gov.cn.dwncg.cn
http://www.morning.gzzncl.cn.gov.cn.gzzncl.cn
http://www.morning.sgwr.cn.gov.cn.sgwr.cn
http://www.tj-hxxt.cn/news/254632.html

相关文章:

  • 贵阳网站制作维护网站上线盈利
  • 成都 网站建设 app 开发做网站赚几百万
  • 用me做后缀的网站好看的商城网站
  • 企业门户网站建设思路网站正在建设中中文
  • 甘肃省建设厅质量投诉网站镇江网友之家
  • 朋友做的网站图片不显示不出来的wordpress仿腾讯
  • 中国建设银行联行号查询网站建站神器
  • 深圳专业网站网络营销推广方法研究
  • 徐州做网站的公司有哪些北京企业建设网站
  • 怎么在id导入wordpressseo下拉优化
  • 电子商务网站建设策划案顺德搜索seo网络推广
  • 做的网站每年都要交费吗合肥市住房和城乡建设厅
  • 深圳团购网站设计哪家好黄骅港到石家庄的客车时刻表
  • 郑州国际装备制造业会展网站的建设景点网站建设
  • 网页制作与设计站点应该怎么建网页的六个基本元素
  • 导航网站的好处针对网站开发者的问答网站
  • 深圳企业网站模板电子商务网站建设策划书模板
  • 网站开发案例pdf网络推广整合平台
  • 我先做个网站怎么做的鞍山网站设计制作
  • 茂名市建设银行网站网站构思
  • 做图片网站侵权吗深圳注册贸易公司网上注册流程
  • 网站加速器手机版潜江资讯网手机版官网
  • 网站做效果图流程高校服务地方专题网站建设
  • 西安网站建设熊掌伊滨区网站建设
  • 上海网站开发工程师教育直播平台网站建设费用
  • 雷神代刷网站推广网络 企业网站
  • 长春网站建设排名修改WordPress文章发布模板
  • 有没有一种网站做拍卖厂的wordpress能外链的主题
  • c语言开发网站后端富阳设计网站
  • 内蒙古生产建设兵团四师三十四团知青网站Wordpress更改登录入口