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

做任务网站有哪些内容昌黎网站建设

做任务网站有哪些内容,昌黎网站建设,ppt精美模板,外综服网站开发前面试水了使用docker安装Superset,但是连接数据库的时候,虽然sqlserver安装了驱动,但是数据库类型并没有出现在选择列表中,oracle更是连驱动安装都成问题,看网上别人主机安装轻飘飘就完成了,就继续试试本地化安装是否没有这个问题。 一.安装ubuntu20.4 二.环境准备 --安装…

前面试水了使用docker安装Superset,但是连接数据库的时候,虽然sqlserver安装了驱动,但是数据库类型并没有出现在选择列表中,oracle更是连驱动安装都成问题,看网上别人主机安装轻飘飘就完成了,就继续试试本地化安装是否没有这个问题。
一.安装ubuntu20.4
二.环境准备
--安装必要的组件
admin@supersetbi:~$ sudo apt-get install build-essential libssl-dev libffi-dev python3-dev python3-pip libsasl2-dev libldap2-dev default-libmysqlclient-dev

--创建虚拟环境
admin@supersetbi:~$ pip install virtualenv
admin@supersetbi:~$ python3 -m venv venv
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
    apt install python3.8-venv
You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.
Failing command: ['/home/admin/venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

admin@supersetbi:~$ apt install python3.8-venv
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
admin@supersetbi:~$ sudo apt install python3.8-venv
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  python3.8-venv
0 upgraded, 1 newly installed, 0 to remove and 57 not upgraded.
Need to get 5,448 B of archives.
After this operation, 27.6 kB of additional disk space will be used.
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates/universe amd64 python3.8-venv amd64 3.8.10-0ubuntu1~20.04.18 [5,448 B]
Fetched 5,448 B in 0s (29.9 kB/s)
Selecting previously unselected package python3.8-venv.
(Reading database ... 77983 files and directories currently installed.)
Preparing to unpack .../python3.8-venv_3.8.10-0ubuntu1~20.04.18_amd64.deb ...
Unpacking python3.8-venv (3.8.10-0ubuntu1~20.04.18) ...
Setting up python3.8-venv (3.8.10-0ubuntu1~20.04.18) ...
admin@supersetbi:~$ python3 -m venv venv

--激活虚拟环境
admin@supersetbi:~$ . venv/bin/activate

三.第一次尝试安装superset,失败
(venv) admin@supersetbi:~$ pip install apache_superset
遇到错误
Building wheels for collected packages: apache-superset, func-timeout, pgsanity, admin, wtforms-json, pymeeus
  Building wheel for apache-superset (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/admin/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-dtml50dj/apache-superset/setup.py'"'"'; __file__='"'"'/tmp/pip-install-dtml50dj/apache-superset/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-7ilnt9rb
       cwd: /tmp/pip-install-dtml50dj/apache-superset/
  Complete output (11 lines):
  fatal: not a git repository (or any of the parent directories): .git
  -==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
  VERSION: 2.1.3
  GIT SHA:
  -==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
 (venv) admin@supersetbi:~$ git status
fatal: not a git repository (or any of the parent directories): .git
(venv) admin@supersetbi:~$ git init
Initialized empty Git repository in /home/admin/.git/
继续安装,pass
(venv) admin@supersetbi:~$ pip install apache_superset
--设置密码
(venv) admin@supersetbi:~$ export SUPERSET_SECRET_KEY=Wodesuperset2025
(venv) admin@supersetbi:~$ export FLASK_APP=superset
--数据库初始化
(venv) admin@supersetbi:~$ superset db upgrade
提示错误:
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (typing-extensions 4.13.2 (/home/admin/venv/lib/python3.8/site-packages), Requirement.parse('typing-extensions==4.12.2; python_version < "3.10"'), {'kombu'})
pyth
(venv) admin@supersetbi:~$ python --version
Python 3.8.10
admin@supersetbi:~$ . venv/bin/activate
查看网站上版本已经到了4.12,可是pip版本还只有2.1.3
(venv) admin@supersetbi:~$ pip install apache_superset==4.1.2
ERROR: Could not find a version that satisfies the requirement apache_superset==4.1.2 (from versions: 0.34.0, 0.34.1, 0.35.1, 0.35.2, 0.36.0, 0.37.0, 0.37.1, 0.37.2, 0.38.0, 0.38.1, 1.0.0, 1.0.1, 1.1.0, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 2.0.0, 2.0.1, 2.1.0, 2.1.1rc1, 2.1.1rc2, 2.1.1rc3, 2.1.1, 2.1.2, 2.1.3)
ERROR: No matching distribution found for apache_superset==4.1.2

四.第二次尝试手工安装superset,失败
--下载安装包
(venv) admin@supersetbi:~$ wget https://files.pythonhosted.org/packages/f6/86/a5c2056bcfe7a05eba090212b6f71632ba45832c243a2711403ce4f53acc/apache-superset-4.1.2.tar.gz
apache-superset-4.1.2  apache-superset-4.1.2.tar.gz  Python-3.10.14  Python-3.10.14.tgz  venv
--安装
(venv) admin@supersetbi:~$ python3 -m pip install apache-superset-4.1.2.tar.gz
Processing ./apache-superset-4.1.2.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
ERROR: Package 'apache-superset-4.1.2' requires a different Python: 3.8.10 not in '~=3.9'
(venv) admin@supersetbi:~$
既然python不符合要求,那就升级python
--升级安装Python3.10。
(venv) admin@supersetbi:~$sudo apt update
(venv) admin@supersetbi:~$sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
VERSION=3.10.14
(venv) admin@supersetbi:~$wget https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tgz
(venv) admin@supersetbi:~$tar -xf Python-$VERSION.tgz</

http://www.dtcms.com/wzjs/836247.html

相关文章:

  • 的网站设计案例如何快速推广
  • 网站如何做导航条下拉菜单建设网站是否等于网络营销
  • 网站维护的注意事项有哪些做的好的网站
  • 可以做相册的网站孝感做网站
  • php网站制作实例教程澄海区建设局网站
  • 一站式服务图片网站建设交流发言材料
  • 网站建设咨询什么电商seo推广
  • 昆山网站建设 技术支持 力得网络网站 制作
  • 高端网站制作模板公司部门简介模板
  • 静态网站开发用到的技术网站建设中栏目是什么
  • 电脑网站转换手机网站怎么做我们seo
  • 网站尾部新站快速收录
  • 重庆网站排名优化教程软件工程项目管理
  • 百姓网免费发布信息平台seo教程技术优化搜索引擎
  • 修改图片网站网站收录量低怎么做
  • 律师个人网站源码微信电影网站建设教程
  • 网站建设与建设怎么配置wordpress
  • 网络商城网站建设自学织梦做网站要多久
  • 用lamp搭wordpress官网seo怎么做
  • 网站建设需要哪些必备文件ps软件下载安装
  • 腾讯云动态加速WordPress广东企业网站seo哪里好
  • 教育网站模块建设百度手机网站制作
  • 信息发布型网站哪个网站找住宿的便宜
  • 企业网站源码 html郑州经济技术开发区建设局
  • 建设人才证书查询网站长沙网页设计有哪些
  • 湖北省住建厅网站官网赣州市建设培训网
  • 教学网站制作治疗腰椎间盘突出的特效药
  • 网站首页是什么意思wordpress修改默认头像
  • 做宝宝衣服的网站用动物做网站名
  • 建设信用卡银行商城网站刚做的网站在百度上搜不到