Both .py and .pyc files are sources and scripts for Python language. If you know the language you can work with them and perhaps manually convert one to another, but maybe both files are just same file types using different file extension.
Convert Python script language source code to Compiled Python script source code.
We have found one software suitable in our database for this conversion.
Microsoft Windows software - convert py to pyc on Windows
One of the prominent programming and scripting languages
Convert from py file format
The table with program actions contains information about what each program is capable of doing with their files. This may be a good pointer for further searches for certain file conversions and help you find the converter you are looking for if our search result is insufficient for you. However, it is far from perfect and may sometimes show results which are not really usable because of the nature of the software handles the files. So a conversion that appears as possible, just because of matched actions, may in fact not be possible.