Trying to get Tor to renew my identity for my Python code.

I'm following the STEM project guide on how to set this up. It seems that to get this properly working (for Python), I need to edit the torrc file.

However, I do not seem to have this torrc file. Its not located where it should be according to STEM, nor is it in the place according to this answer. In short, I just do not have this file.

Is this a common issue? Should I create the file myself, and if so, how? Should I download the file somewhere? Or is it something else?

  • The torrc files location depends on how it was built and installed and it can be defined when you start tor by using the -f command line option. – cacahuatl Mar 20 '17 at 16:09

When I run tor -f in Terminal, I get Command-line option '-f' with no value. Failing.

And when I run tor --verify-config I get Configuration file "/opt/local/etc/tor/torrc" not present, using reasonable defaults.

I copied the torrc.sample, uncommented the necessary according to the guide and renamed the copy torrc. That does not seem to work either.

Sidenote: I placed this question and registered afterwards - I am not allowed to comment on the question. Let me know I I can appoint this question to my account and how.

  • So, the error message clearly indicates that -f should be followed by the location of your torrc and also that the default location that it is looking is /opt/local/etc/tor/torrc. So either give it a custom path with -f or create one at the location /opt/local/etc/tor/torrc – cacahuatl Mar 21 '17 at 17:15
  1. Open Finder
  2. Press Command, Shift, G
  3. Enter this command: ~/Library/Application Support/TorBrowser-Data/Tor

You should be able to see the Torcc file

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.