Unable to Deploy Python App from Github

I am new to streamlit and am unable to deploy app using python files from github. I am getting the message ‘Error installing requirements’. I have the requirements.txt in place. The manage app terminal is showing a warning that I am using an older version of pip and that I should upgrade it. However, I have no idea how to do that. It is also facing issues with processing dependencies. Please help me.

Once check which python version have you been using in your local. After deploy the app by selecting the python version in advanced option in the time of app deploying dashboard.

The second way is to share ur requirement.txt file or recheck the versions of your packages in your local and use that same version as in your requirement.txt file. Don’t forget to check the python version!

Please share the link to your public github repo.

Forget about this warning, it is just a warning, it is annoying and irritating for new users…

I have deployed the app by selecting the python version in advanced option. I have also used the same version of packages in local in the requirements.txt. Now I am getting this error in the manage terminal

ERROR: Could not find a version that satisfies the requirement pywin32==306 (from versions: none)
ERROR: No matching distribution found for pywin32==306

Here is the link for my github repo: GitHub - vikasprasad7/churn-3
Please help

Here is the link for github repo: GitHub - vikasprasad7/churn-3

Thanks for sharing!

A few issues:

  1. you are referencing a local file here https://github.com/vikasprasad7/churn-3/blob/main/churn.py#L18 – if you want this to work, move the csv into the repo, and upload it with the repo, and change this line to read from the repo folder (e.g. pd.read_csv(‘customer_churn_2.csv’)
  2. You are installing a lot of packages that you probably don’t need. In particular, I don’t see any place where you are using pywin in this package. Also, that won’t work on Community Cloud, because it’s not a Windows server, but is a Linux server, so it can’t install pywin32.

It looks like you only need a few packages, based on what you are actually importing

matplotlib
seaborn
xgboost
scikit-learn

The other packages (numpy, pandas) come with streamlit, so you don’t even have to list those explicitly.

I would try simplifying your requirements.txt down to that list, or something similar.

1 Like

Thanks

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.