Python笔记

neo4j.bat console

neo4j start

1、 安装低版本pyltp
pip install pyltp==0.2.1 -i https://pypi.douban.com/simple
https://blog.csdn.net/qq_41617060/article/details/123988466
pip install wheel
https://pypi.org/project/pyltp/

ASCII转换字符工具
https://www.sojson.com/ascii.html

pip install py2neo

pip3 uninstall py2neo

 pip3 install py2neo==4.3.0
 pip install py2neo==4.3.0 -i https://pypi.douban.com/simple

pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com --upgrade tensorflow-gpu==2.2.0
pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com --upgrade keras==2.3.1

pip install tensorflow==1.14.0     # CPU版本,GPU略

pip install --ignore-installed --upgrade tensorflow-gpu==1.14.0

pip install tensorflow-gpu==1.14.0

pip install tensorflow==2.0.0-alpha0

pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple 


conda install --yes --file requirements.txt

pip install boost -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com

 从网上下载py2neo-3.1.1.zip解压

然后cmd

cd 进入py2neo-3.1.1文件夹,输入

python setup.py install

ModuleNotFoundError: No module named 'pyahocorasick’解决办法

pip install pyahocorasick

项目import ahocorasick

这两个名字不一样
conda install python=3.6

conda install pytorch=0.4.1 -c pytorch

pip install torch==1.6.0 -f https://download.pytorch.org/whl/torch_stable.html

pip install -U flask-cors

conda install pyahocorasick

conda install -c https://conda.anaconda.org/conda-forge pyahocorasick

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

pip install py2neo==4.3.0 -i https://pypi.douban.com/simple

docker run -p 3306:3306 --name mysql -v /gx/mysql/conf:/etc/mysql/conf.d -v /gx/mysql/logs:/logs -v /gx/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7

pip install git+https://github.com/WojciechMula/pyahocorasick

pip install -e git+https://github.com/WojciechMula/pyahocorasick.git#egg=pyahocorasick

pip install flask==1.0.2

pip uninstall flask   #卸载  你也可以省略这步,直接pip install flask==1.0
pip install flask==1.0   #我这里改成1.0就行了,改成其他低版本应该也没问题,有兴趣自己试下

conda config --add channels conda-forge
conda install pyahocorasick

pip install ackit


pip install xlrd==1.2.0


pip3 install h5py==2.10.0


conda env list

pip install --upgrade numpy

pip install protobuf==3.20.1

python -m pip install --upgrade pip -i https://pypi.douban.com/simple

KBQA 基于知识库的问答系统

 pip install --upgrade gevent -i https://pypi.douban.com/simple
pip  install h5py==2.10.0 -i https://pypi.douban.com/simple

pip install scikit-learn  -i https://pypi.douban.com/simple


运行sequence_labeling/run.py,该HTTP服务运行端口为12306;

运行text_classification/extract_server.py,该HTTP服务运行端口为12308;

spo三元组是指一种用来表示知识三元组的标准格式。
知识三元组是指包含主语(subject)、谓语(predicate)和宾语(object)的三元组,用来表示知识图谱中的实体和关系。 


#删除xlrd再安装指定版本的xlrd来解决问题:
pip uninstall xlrd
pip install xlrd==1.2.0

你可能感兴趣的:(python,笔记,开发语言)