创建虚拟环境
~/project/hanqin/django> virtualenv monitor2
~/project/hanqin/django/monitor2> cd bin
~/project/hanqin/django/monitor2/bin> source activate 上传Django-1.11.11到以下文件夹
~/project/hanqin/django/monitor2/tmp
~/project/hanqin/django/monitor2/tmp> cd Django-1.11.11/
~/project/hanqin/django/monitor2/tmp/Django-1.11.11> python3 setup.py install 安装时候最后面因为没网报错,

Processing dependencies for Django==1.11.11
Searching for pytz
Reading https://pypi.python.org/simple/pytz/
Download error on https://pypi.python.org/simple/pytz/: unknown url type: https -- Some packages may not be found!
Couldn't find index page for 'pytz' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: unknown url type: https -- Some packages may not be found!
No local packages or working download links found for pytz
error: Could not find suitable distribution for Requirement.parse('pytz')

去官网下载对应版本的tz,tz是timezone时区的意思,我用的python3.6下的是标红版本

https://pypi.python.org/pypi/pytz/#downloads

~/project/hanqin/django/monitor2/tmp> tar -zxvf pytz-2018.3.tar.gz

~/project/hanqin/django/monitor2/tmp> cd pytz-2018.3/

~/project/hanqin/django/monitor2/tmp/pytz-2018.3> python3 setup.py  install

~/project/hanqin/django/monitor2/tmp/pytz-2018.3> cd /home/insp_ap/project/hanqin/django/monitor2/lib/python3.6/site-packages/

~/project/hanqin/django/monitor2/lib/python3.6/site-packages> ls -lrt
total 511
drwxr-xr-x 2 insp_ap users 344 Apr 7 10:42 setuptools-28.8.0.dist-info
drwxr-xr-x 5 insp_ap users 1032 Apr 7 10:42 setuptools
drwxr-xr-x 5 insp_ap users 160 Apr 7 10:42 pkg_resources
-rw-r--r-- 1 insp_ap users 126 Apr 7 10:42 easy_install.py
drwxr-xr-x 2 insp_ap users 96 Apr 7 10:42 __pycache__
drwxr-xr-x 2 insp_ap users 312 Apr 7 10:42 wheel-0.29.0.dist-info
drwxr-xr-x 6 insp_ap users 592 Apr 7 10:42 wheel
drwxr-xr-x 2 insp_ap users 280 Apr 7 10:42 pip-9.0.1.dist-info
drwxr-xr-x 11 insp_ap users 648 Apr 7 10:42 pip
drwxr-xr-x 4 insp_ap users 96 Apr 7 10:50 Django-1.11.11-py3.6.egg
-rw-r--r-- 1 insp_ap users 510240 Apr 7 10:56 pytz-2018.3-py3.6.egg
-rw-r--r-- 1 insp_ap users 51 Apr 7 10:56 easy-install.pth
(monitor2) insp_ap@inspect01:~/project/hanqin/django/monitor2/lib/python3.6/site-packages>

~/project/hanqin/django/monitor2/lib/python3.6/site-packages> cat easy-install.pth
./Django-1.11.11-py3.6.egg
./pytz-2018.3-py3.6.egg


由于用的是Oracle数据库,继续安装cx_Oracle,确保环境变量.bash_profile下已经有如下ORACLE配置

export ORACLE_SID=inspdb
export ORACLE_HOME=/oracle/app/oracle/product/11.2.0/db_1
export ORACLE_HOME=/oracle/app/oracle/product/11.2.0/db_1
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$JAVA_HOME/bin insp_ap@inspect01:~/project/hanqin/django/monitor2/tmp> pwd
/home/insp_ap/project/hanqin/django/monitor2/tmp
insp_ap@inspect01:~/project/hanqin/django/monitor2/tmp> ls cx_Oracle-6.0.3.tar.gz
cx_Oracle-6.0.3.tar.gz 解压后使用命令  python3 setup.py install
running install
running bdist_egg
running egg_info
writing cx_Oracle.egg-info/PKG-INFO
writing dependency_links to cx_Oracle.egg-info/dependency_links.txt
writing top-level names to cx_Oracle.egg-info/top_level.txt
reading manifest file 'cx_Oracle.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'odpi/test'
no previously-included directories found matching 'odpi/samples'
writing manifest file 'cx_Oracle.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'cx_Oracle' extension
creating build
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Iodpi/include -Iodpi/src -I/usr/local/include/python3.6m -c src/cx_Oracle.c -o build/temp.linux-x86_64-3.6/src/cx_Oracle.o -DBUILD_VERSION=6.0.
src/Cursor.c: In function 'Cursor_MultiFetch':
src/Cursor.c:: warning: 'found' may be used uninitialized in this function
creating build/lib.linux-x86_64-3.6
gcc -pthread -shared build/temp.linux-x86_64-3.6/src/cx_Oracle.o -o build/lib.linux-x86_64-3.6/cx_Oracle.cpython-36m-x86_64-linux-gnu.so
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-3.6/cx_Oracle.cpython-36m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg
creating stub loader for cx_Oracle.cpython-36m-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/cx_Oracle.py to cx_Oracle.cpython-.pyc
installing package data to build/bdist.linux-x86_64/egg
running install_data
creating build/bdist.linux-x86_64/egg/cx_Oracle-doc
copying LICENSE.txt -> build/bdist.linux-x86_64/egg/cx_Oracle-doc
copying README.txt -> build/bdist.linux-x86_64/egg/cx_Oracle-doc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying cx_Oracle.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying cx_Oracle.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying cx_Oracle.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying cx_Oracle.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
__pycache__.cx_Oracle.cpython-: module references __file__
creating dist
creating 'dist/cx_Oracle-6.0.3-py3.6-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing cx_Oracle-6.0.-py3.-linux-x86_64.egg
creating /home/insp_ap/project/hanqin/django/monitor2/lib/python3./site-packages/cx_Oracle-6.0.-py3.-linux-x86_64.egg
Extracting cx_Oracle-6.0.-py3.-linux-x86_64.egg to /home/insp_ap/project/hanqin/django/monitor2/lib/python3./site-packages
Adding cx-Oracle 6.0. to easy-install.pth file Installed /home/insp_ap/project/hanqin/django/monitor2/lib/python3./site-packages/cx_Oracle-6.0.-py3.-linux-x86_64.egg
Processing dependencies for cx-Oracle==6.0.
Finished processing dependencies for cx-Oracle==6.0.

可以看到安装完成并未报错

无网情况下linux安装django的更多相关文章

  1. 没有外网情况下linux安装mysql

    首先linux要使用局域网 环境要求:局域网,  windows系统,  linux系统,  mysql安装包mysql.tar.gz 注意:32位操作系统用32位安装包,64位系统用64位安装包,不 ...

  2. CentsOS7无网情况下安装mysql5.7

    1.需求就不用讲了,客户现场,政府环境,银行环境,大多是没网的,所以无网安装是很有必要的 mysql下载路径:https://dev.mysql.com/downloads/mysql/ 查看自己Li ...

  3. CentOS 6.5本地yum源、局域网离线yum仓库(断网情况下轻松安装各种依赖包)

    在工作中, 公司的服务器大部分都禁止连接外网的,初始化系统,测试某些产品时,往往缺一些软件或依赖包,一个个上传到机器,如此浪费时间,浪费金钱,en...yum能够自动查找并解决rpm包之间的依赖关系, ...

  4. linux服务器没网情况下手动安装软件几个方法

    1,找到一个有网的服务器,使用yumdownloader gcc,获取需要的rmp包: 2,在http://pkgs.org 下下载所需要的rpm包

  5. 【无网条件下】Linux系统、jdk、redis及集群、rabbitmq、nginx、weblogic和oracle安装及配置

    本篇文章为原创,仅供参考使用,如果需要文章中提到的所有软件安装包和依赖包(即data),请以博客园邮箱联系获取链接. 准备资料 软件 主要软件包版本 路径 系统镜像 CentOS-6.10-x86_6 ...

  6. Python离线断网情况下安装numpy、pandas和matplotlib等常用第三方包

    联网情况下在命令终端CMD中输入“pip install numpy”即可自动安装,pandas和matplotlib同理一样方法进行自动安装. 工作的电脑不能上外网,所以不能通过直接输入pip命令来 ...

  7. KVM虚拟机内无agent情况下的监控方法

    KVM虚拟机内无agent情况下的监控(ceilometer实现) 今天看到大家在群里讨论KVM虚拟机的监控问题,而且是要求VM内无agent情况下的监控.这方面确实没有深入研究,但尚有些openst ...

  8. 自己瞎捣腾的Win7下Linux安装之路-----理论篇

    接着上回说道,我把双系统做好啦,开心.... 之后我就在想几个问题: 1.在Ubuntu装好后,重启电脑却还是win7,等我用EasyBCD之后,才可选择使用装好的Ubuntu呢? 2.在用EasyB ...

  9. 高并发情况下Linux系统及kernel参数优化

    众所周知在默认参数情况下Linux对高并发支持并不好,主要受限于单进程最大打开文件数限制.内核TCP参数方面和IO事件分配机制等.下面就从几方面来调整使Linux系统能够支持高并发环境. Iptabl ...

随机推荐

  1. dede织梦后台页面及功能修改精简操作方法

    有很多使用织梦程序的站长往往都不喜欢使用默认的后台,但对于很多小白站长其实也不太懂程序的功能,而且如果显示或者开了过多的功能只会给自己带来困扰,所以小白站长都喜欢一些傻瓜式的后台操作界面.那么,ded ...

  2. win7 80端口被iis占用

    下载iis管理器,打开,关闭80端口占用

  3. Servlet工作原理解析

    Web 技术成为当今主流的互联网 Web 应用技术之一,而 Servlet 是 Java Web 技术的核心基础.要介绍 Servlet 必须要先把 Servlet 容器说清楚,Servlet 与 S ...

  4. Laravel中队列的使用

    以laravel5.5为例子: 1.配置队列:composer require "predis/predis:~1.0" a.在ENV中配置:QUEUE_DRIVER=redis ...

  5. IntelliJ IDEA 构建maven多模块项目

    我们在开发中 因为项目之间需要依赖 所以会在maven创建多个项目配置依赖,这种项目结构主要应用在大型项目中,多人协作开发 1.创建一个项目 File ->NEW -> Projec 2. ...

  6. ORACLE日常操作手册

    转发自:http://blog.csdn.net/lichangzai/article/details/7955766 以前为开发人员编写的oracle基础操作手册,都基本的oracle操作和SQL语 ...

  7. thymeleaf注入springboot

    thymeleaf注入springboot需要引入jar: <dependency> <groupId>org.springframework.boot</groupId ...

  8. Object.create() vs new SomeFunction() in javascript

    Object.create builds an object that inherits directly from the one passed as its first argument. Wit ...

  9. 为docker私有registry配置nginx反向代理

    公司的Docker私有registry已经搭建好了,用官方的registry image很容易就搭建好了.现在就是要用nginx的反向代理把它放出来,以便在外网可以访问. 我的上一篇blog 讲了如何 ...

  10. SQL Server error

    原因:文件没有权限 出错: TITLE: Microsoft SQL Server Management Studio------------------------------ Attach dat ...