学习流水账(记录TinyWebDB代码试验1)

今天尝试了昨天在GitHub上发现的一篇关于TinyWebDB的源码,我在GitHub上找的参考代码

这个是向kodular提供数据库的源码,kodular也是一个编写软件应用的工具。(虽然感觉对编写服务器没什么用,但是想看看。

代码里爆红,需要下载第三方库

Windows下anaconda安装第三方包的方法小结(tensorflow、gensim为例)

尝试后仍出现问题

看到一个人的提问,[求助] 各位高手,安装Anaconda错误提醒,请指教如何解决!才发现是指令输错了

正确的Anaconda下载指令:conda install ***(这里写要下载的包的名字)

指令输对了好像还是不能成功下载这个包

成功解决PackagesNotFoundError: The following packages are not available from current channels: tensorflo

尝试了下这个好像没用

参考Anaconda创建新环境报错解决方法 说是要改.condarc文件

在 Anaconda\pkgs\conda-4.9.2-py38haa95532_0\info\test\tests 里

# This is a sample .condarc file

# channel locations. These override conda defaults, i.e., conda will
# search *only* the channels listed here, in the order given. Use "defaults" to
# automatically include all default channels. Non-url channels will be
# interpreted as binstar usernames (this can be changed by modifying the
# channel_alias key; see below).
channels:
  - binstar_username
  - http://some.custom/channel
  - defaults

# Alias to use for non-url channels used with the -c flag. Default is https://conda.binstar.org/

channel_alias: https://your.repo/

# Proxy settings: http://[username]:[password]@[server]:[port]
proxy_servers:
    http: http://user:pass@corp.com:8080
    https: https://user:pass@corp.com:8080

# directory in which conda root is located (used by `conda init`)
root_dir: ~/.local/conda_root

# directories in which environments are located
envs_dirs:
  - ~/my-envs
  - /opt/anaconda/envs

# directories in which package cache can be present
pkgs_dirs:
  - ~/my-pkgs
  - /opt/anaconda/pkgs

# implies always using the --yes option whenever asked to proceed
always_yes: True

# disallow soft-linking (default is allow_softlinks: True,
#                        i.e. soft-link when possible)
allow_softlinks: False

# always use soft-links instead of hard-links (default False)
always_softlink: True

# change ps1 when using activate (default True)
changeps1: False

# use pip when installing and listing packages (default True)
use_pip: False

# binstar.org upload (not defined here means ask)
binstar_upload: True

# when creating new environments add these packages by default
create_default_packages:
  - python
  - pip

# disallowed specification names
disallow:
  - anaconda

# enable certain features to be tracked by default
track_features:
  - mkl

 

但是改了这个文件之后似乎还是不行,仔细看了那篇文章,发现其实这个文件控制的就是要把镜像改成清华源

 

改annaconda的清华源镜像anaconda3之基本使用、更换国内镜像、安装python虚拟器、第三方库安装及问题解决

我尝试用CMD键入指令,企图改成清华源镜像:

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

文章里说成功之后会在C:\Users\lenovo下建立一个.condarc的文件,.condarc这个文件默认是没有的,添加镜像时自动建立的

 

有一个db包是可以成功引入了,但是webapp包依旧引入不进来。

参考所有anaconda安装包失败的解决办法汇总(这个也不错!!!!)

试着更改Pip源:

pip install scrapy -i https://pypi.tuna.tsinghua.edu.cn/simple

最后一次尝试还是不行。

今天做了很多无用功,剩下的时间我要学习概率论了。。。

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值