ICode9

精准搜索请尝试: 精确搜索
  • linux学习2021-10-30 15:06:09

    MAC终端切换bash和zsh(美元符号$切换百分号%) 竟然使用source 如何使用PyCharm自动生成requirements.txt

  • requirements.txt 去掉@file及其信息2021-10-25 15:36:44

    用pip freeze -> requirements.txt 生成的txt文档里面会出现@file现象,如下: arviz @ file:///home/conda/feedstock_root/build_artifacts/arviz_1592923948739/work 去掉@ file 后面的信息,方法如下: pip list --format=freeze > requirements.txt 换另一个环境,安装方法如下: pip ins

  • 关于conda,pip和requiresments2021-10-21 19:30:12

    目录 1、为什么anaconda环境中,还需要用pip安装包,此情况下使用pip需要注意哪些事项 2、导出和安装依赖 3、参考自 1、为什么anaconda环境中,还需要用pip安装包,此情况下使用pip需要注意哪些事项 在anaconda下用pip装包的原因:尽管在anaconda下我们可以很方便的使用conda install来

  • Python虚拟环境的搭建(新手)2021-10-20 09:07:22

    一、python虚拟环境的介绍   1.什么是python的虚拟环境: 所谓的python虚拟环境,我们可以类比虚拟机的概念,每一个python虚拟环境都包含基本的python库,是能够独立运行的执行空间。在虚拟环境里可以下载第三方包、创建项目、写代码等等。因为虚拟环境之间互不干扰,一旦进入某个虚拟

  • pycharm上的python虚拟环境移到离线机器上2021-10-16 22:32:54

      Pycharm的Terminal 中执行: 查看现有的包到requirements.txt中 pip freeze > requirements.txt 生成依赖包 D:\machangwei\venv\Scripts\python.exe -m pip download -d whl -r requirements.txt #-d指定将虚拟环境中的包安装到哪个目录,如果没有他会新建目录。-r指定上一步骤

  • Distributed File System2021-10-15 16:02:34

    Reference Introduction Key Words Requirements Functional Non-Functional Estimation Traffic Storage High Level Design Draw IO source Follow-up

  • Type Ahead2021-10-15 16:00:17

    Reference Introduction Key Words Requirements Functional Non-Functional Estimation Traffic Storage High Level Design Draw IO source Follow-up

  • 自动驾驶1-5: Lesson 2: Requirements for Perception2021-10-14 09:01:58

    参考 https://www.coursera.org/learn/intro-self-driving-cars/lecture/5Etyq/lesson-2-requirements-for-perception

  • python 虚拟环境2021-10-13 10:03:51

    虚拟环境 pip install virtualenvwrapper-win windows pip install virtualenvwrapper ubuntu 创建虚拟环境: workon 查看虚拟环境 mkvirtualenv 虚拟环境的名字 - -- mkvirtualenv 1902flask windows: (1902flask) C:\Users\running>

  • 爬虫部署-2,基于Docker的Scrapy+Scrapyd+Scrapydweb部署2021-10-11 03:32:23

    #### scrapy对接docker的思路, ### 涉及到四个部分, Scrapy Scrapyd Scrapydweb Docker #### 首先你思考一下,如果只有Scrapyd怎么docker部署? 1、把Scrapyd独立成为一个项目 1.1 编写Scrapyd的配置文件 新建一个scrapyd.conf文件,填写配置内容,默认使用官网上的就可以。 1.2 新建一个r

  • 【YOLO】环境搭建2021-10-09 22:33:18

     目的:安装PyTorch的gpu版,使用YOLOv5的requirements.txt创建新的conda环境。   1. 查看CUDA版本,本机 cuda11.1 nvcc --version pytorch官网:https://pytorch.org/get-started/locally/   2.创建环境 conda create -n yolo pytorch torchvision torchaudio cudatoolkit=11.1 -c py

  • FastAPI(62)- FastAPI 部署在 Docker2021-10-08 21:34:39

    Docker 学习 https://www.cnblogs.com/poloyy/p/15257059.html   项目结构 . ├── app │   ├── __init__.py │ └── main.py ├── Dockerfile └── requirements.txt    FastAPI 应用程序 main.py 代码 from typing import Optional from fastapi import

  • Python 常见问题 - pip install 指定 poetry 导出的 requirements.txt,报错 ERROR: In --require-hashes mode, all req2021-10-08 14:02:47

    背景 Python 3.9 pip 21.2.3 poetry 1.1.8 执行了命令,导出 requirements.txt poetry export -f requirements.txt --output requirements.txt   查看 requirements.txt 每个库都有 hash 加密字段   执行 pip install 命令 pip3 install --no-cache-dir --upgrade

  • 使用Python项目生成所有依赖包的清单方式2021-10-07 15:01:22

    1、安装所需工具 pip install pipreqs 2、进入到python项目主目录 pipreqs ./ --encoding=utf8 3、完成上面命令会生成requirements.txt 4、sudo pip install -r requirements.txt即可   补充知识:解决Python开发过程中依赖库打包问题的方法 在Python开发的过程中,经常会遇到各

  • tensorflow安装方案之一例2021-10-03 21:33:10

    conda create --name <env-name> python=3.6 将下列内容保存为requirements.txt文件,放置在根目录下。 numpy==1.16.4 pandas==1.1.5 scipy==1.5.4 tensorflow==1.9.0 pip install -r requirements.txt 进行测试: python ... >>import tensorflow

  • 生成requirement.txt文件2021-09-21 17:03:47

    生成requirements.txt文件 python项目中,可以将所有依赖包生成一个requirements.txt文件,以方便在一个新环境中更快的部署。 生成命令: pip freeze > requirements.txt   执行完成后,可以看到项目根目录下多了一个requirements.txt文件,里面包含项目的依赖包及版本号。 如图: 通过re

  • 常用pip命令汇总2021-09-21 15:59:35

    下载某包(以easygame为例): pip install easygame 更新某包: pip install -U easygame 搜索某包: pip search easygame 查看某包的信息: pip show -f easygame 卸载某包: pip uninstall easygame 列出已安装的包: pip list 列出可更新的包: pip list -o 将以安装的包

  • 2021-09-172021-09-17 11:58:33

    批量下载 requirements.txt 里面的所有包 一、说明二、代码演示1.用豆瓣源下载单个包2.用豆瓣源批量下载requirements.txt的库 三、总结 一、说明 如果大家是零基础入门深度学习,有时候在配置环境这条路上不断踩坑,但是不知道如何解决,特别是在配置环境中的下载库。如果直接

  • requirements.txt2021-09-16 20:33:28

    APScheduler==3.7.0 asgiref==3.3.4 backcall==0.2.0 certifi==2020.12.5 chardet==4.0.0 colorama==0.4.4 coreapi==2.3.3 coreschema==0.0.4 decorator==4.4.2 Django==3.2.2 django-apscheduler==0.5.2 django-cors-headers==3.7.0 django-filter==2.4.0 django-mysql==3.9

  • python 本地l离线安装whl文件2021-09-13 10:31:17

    记录下无网络时安装Python环境 一: 单独下载文件   1、下载whl离线文件到本地,放到c盘根目录(任意位置均可,只是方便安装) https://pypi.org/ https://www.lfd.uci.edu/~gohlke/pythonlibs/(国内源,速度快。ctrl+f找到自己需要的文件)   2、 cmd到存放whl文件的目录   3、pip安装whl离

  • Python语言程序设计2021-09-09 12:01:38

    Python语言程序设计   python软件包管理工具 python的包管理工具有easey_install, setuptools, pip, distribute pip很方便的对各种包进行管理、下载、卸载、查询 pip是一个python管理工具 pip的使用 django Web :基于python语言的开源的免费的web应用开发框架。 python命令 pip

  • Python生成requirements.txt的两种方法2021-09-07 16:00:53

    1. pipreqs [常用] 只导出当前环境使用的依赖包 # 安装 python3 -m pip install pipreqs # 在当前目录生成 pipreqs . --encoding=utf8 --force --encoding=utf8为使用utf8编码,避免编码报错 --force 强制执行覆盖生成目录下的requirements.txt 2. freeze 导出全部环境使用的

  • Python使用requirements.txt安装类库2021-08-18 11:33:33

    requirements.txt文件生成 1.pip freeze > requirements.txt   此方法将导出当前环境下,Python安装的所有类库   2.pip install pipreqs $ pipreqs /path/to/project   只导出当前项目下用到的类库   使用requirements.txt安装类库 pip  install -r requirements.txt

  • Docker部署Gunicorn+Flask打造独立镜像2021-08-10 17:32:33

    1首先简单看一下项目结构:   web_f.py是项目的入口文件         2 安装环境  pip install gunicorn gevent 3 编辑项目目录下的gunicorn.conf.py workers = 3 # 进程数 worker_class = "gevent" # 异步模式 bind = "0.0.0.0:8000" 4 编辑项目目录下的requirem

  • 安装yolov5 requirements踩的坑(CPU版本)2021-08-06 02:31:24

    1, 准备工作 git clone https://github.com/ultralytics/yolov5 # 下载 yolov5 项目 python3 -c "from yolov5.utils.google_utils import gdrive_download; gdrive_download('1n_oKgR81BJtqk75b00eAjdv03qVCQn2f','coco128.zip')" # 下载官方例子的数据集 cd yo

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有