Reputation: 12380
After config remote interpreter and deployment I got the following error when PyCharm trying to install libs from requirements.txt
Can't get remote credentials for deployment server
Upvotes: 33
Views: 39296
Reputation: 11
I encountered the same issue. What I did was reconfigure the interpreter using ssh again. Everything worked then.
Upvotes: 1
Reputation: 21
In my situation, I deleted my project and created and configured it again. My configuration is related to an ssh interpreter and a remote deployment. So even if I have configurated as right, this error appears.
So, the solution was not only to configure it right but to remove the old remote interpreter as well.
Upvotes: 1
Reputation: 742
In my situation, I configured many interpreters in Pycharm for various projects. I tried all the probable solutions (listed in this post) but was unsuccessful, so I Deleted all the interpreters and restarted Pycharm. Then I reconfigured the remote interpreter, and it now work fine.
Upvotes: 0
Reputation: 28522
I encountered this issue 2 ways:
Upvotes: 3
Reputation: 156
I'm using SSH to achieve my Interpreter and encountered sameerror. I tried solutions above, but all in vain.
My solution is, make sure you choose the SSH when you configure your Interpreter. (When I choose Deployment configuration as default, error comes)
Then, configure your deployment in the Tools.
Another solution is remove your current Python Interpreter and setup a new one. This also works for me.
Upvotes: 12
Reputation: 53
For me, remove the debug configuration and create a new one worked
Upvotes: 3
Reputation: 2034
I had the same problem. I configured first a deployment server and then the remote interpreter using the same deployment server config. I was asked if I want to either create a copy or move the configuration from the project level to the IDE level. I moved it.
The problem is that the credentials for the server are only available on the project level. To solve it I had to:
Upvotes: 40
Reputation: 12380
it happen to be wrong configuration of remote interpretor, i configured it once again and all works
Upvotes: 0