Hello Team,
I installed annaconda package on windows 2014 server (3.8.5 python) But when I am trying run my app.py using command prompt then I got below error.
Kindly support me to solve this error
Error message :
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = 'python'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = 'C:\\inetpub\\wwwroot\\PythonWebService_V2\\python.exe'
sys.base_prefix = 'C:\\Anaconda3'
sys.base_exec_prefix = 'C:\\Anaconda3'
sys.executable = 'C:\\inetpub\\wwwroot\\PythonWebService_V2\\python.exe'
sys.prefix = 'C:\\Anaconda3'
sys.exec_prefix = 'C:\\Anaconda3'
sys.path = [
'C:\\Anaconda3\\python38.zip',
'.\\DLLs',
'.\\lib',
'C:\\inetpub\\wwwroot\\PythonWebService_V2',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the file
system encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00002a2c (most recent call first):
<no Python frame>
===========================================================
app.py
from flask import Flask
from flask import request
from flask import json
from flask import jsonify
from ClauseSimilarityCalculationAndInsertion import GetSimilarityForClauseArray,GetOnlyClauseLibrarySimilarityForClauseArray
from SVC.entity_doc import CalculateSimilarityFromDocumentSVCCode
from dbconnect import dbconnect
app = Flask(__name__)
ROOT_PREFIX =''
@app.route(ROOT_PREFIX + '/')
def index():
status='Python API configured successfully'
return status
if __name__ == '__main__':
app.run()
#app.run(debug=False,host="srs50",port="80")
======================================================
app.py code end
========================================================